r659: for C++ compatibility

This commit is contained in:
Heng Li 2018-01-19 10:40:18 -05:00
parent af1a871270
commit 543fa12e68
6 changed files with 7 additions and 3 deletions

1
bseq.c
View File

@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define __STDC_LIMIT_MACROS
#include "bseq.h"
#include "kvec.h"
#include "kseq.h"

View File

@ -7,6 +7,7 @@
#endif
#include <fcntl.h>
#include <stdio.h>
#define __STDC_LIMIT_MACROS
#include "kthread.h"
#include "bseq.h"
#include "minimap.h"

View File

@ -2,6 +2,7 @@
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
#include "kthread.h"
#if (defined(WIN32) || defined(_WIN32)) && defined(_MSC_VER)
#define __sync_fetch_and_add(ptr, addend) _InterlockedExchangeAdd((void*)ptr, addend)

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "getopt.h"
#define MM_VERSION "2.7-r658-dirty"
#define MM_VERSION "2.7-r659-dirty"
#ifdef __linux__
#include <sys/resource.h>

2
misc.c
View File

@ -1,4 +1,4 @@
#include "minimap.h"
#include "mmpriv.h"
int mm_verbose = 1;
int mm_dbg_flag = 0;

View File

@ -2,8 +2,9 @@
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#define __STDC_LIMIT_MACROS
#include "kvec.h"
#include "minimap.h"
#include "mmpriv.h"
unsigned char seq_nt4_table[256] = {
0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,