From: westcott Date: Mon, 18 Oct 2010 13:59:50 +0000 (+0000) Subject: added ifdefs for extern c X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=c95005141e95b4775709a305d305912e29b87587 added ifdefs for extern c --- diff --git a/clearcutcommand.cpp b/clearcutcommand.cpp index 0d2da75..025987f 100644 --- a/clearcutcommand.cpp +++ b/clearcutcommand.cpp @@ -8,8 +8,13 @@ */ #include "clearcutcommand.h" +#ifdef __cplusplus +extern "C" { +#endif #include "clearcut.h" - +#ifdef __cplusplus +} +#endif //********************************************************************************************************************** vector ClearcutCommand::getValidParameters(){ try { diff --git a/distclearcut.h b/distclearcut.h index 25a6541..e4abef2 100644 --- a/distclearcut.h +++ b/distclearcut.h @@ -51,6 +51,11 @@ #ifndef _INC_DIST_H_ #define _INC_DIST_H_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + #include "fasta.h" #include "clearcut.h" @@ -112,6 +117,9 @@ NJ_DNA_count_tt(NJ_alignment *alignment, long int *transversions, long int *residues); +#ifdef __cplusplus +} +#endif #endif /* _INC_DIST_H_ */ diff --git a/dmat.h b/dmat.h index 1c2be55..04305ab 100644 --- a/dmat.h +++ b/dmat.h @@ -50,6 +50,10 @@ #ifndef _INC_DMAT_H_ #define _INC_DMAT_H_ 1 +#ifdef __cplusplus +extern "C" { +#endif + #include "clearcut.h" @@ -86,6 +90,9 @@ void NJ_output_matrix(NJ_ARGS *nj_args, DMAT *dmat); +#ifdef __cplusplus +} +#endif #endif /* _INC_DMAT_H_ */ diff --git a/fasta.h b/fasta.h index 29ea288..8b9e3d6 100644 --- a/fasta.h +++ b/fasta.h @@ -47,6 +47,10 @@ #ifndef _INC_NJ_FASTA_H_ #define _INC_NJ_FASTA_H_ 1 +#ifdef __cplusplus +extern "C" { +#endif + #include "clearcut.h" #define NJ_INITIAL_BUFFER_SIZE 512 @@ -82,6 +86,10 @@ NJ_free_alignment(NJ_alignment *alignment); int NJ_taxaname_unique(NJ_alignment *alignment); +#ifdef __cplusplus +} +#endif + #endif /* _INC_NJ_FASTA_H_ */ diff --git a/getopt_long.h b/getopt_long.h index a1a9add..dbf7992 100644 --- a/getopt_long.h +++ b/getopt_long.h @@ -28,6 +28,10 @@ #ifndef _GETOPT_H +#ifdef __cplusplus +extern "C" { +#endif + struct option { const char *name; int has_arg; @@ -49,4 +53,8 @@ int getopt_long(int argc, char **argv, struct option *longopts, int *indexptr); +#ifdef __cplusplus +} +#endif + #endif /* _GETOPT_H */ diff --git a/mothur b/mothur index ac8ea8a..484ba58 100755 Binary files a/mothur and b/mothur differ diff --git a/prng.h b/prng.h index 64f8ef3..9eb1510 100644 --- a/prng.h +++ b/prng.h @@ -51,6 +51,10 @@ #ifndef _INC_PRNG_H_ #define _INC_PRNG_H_ 1 +#ifdef __cplusplus +extern "C" { +#endif + #define NJ_RAND_MAX 0x7fffffffUL @@ -83,6 +87,10 @@ genrand_res53(void); long int NJ_genrand_int31_top(long int top); +#ifdef __cplusplus +} +#endif + #endif /* _INC_PRNG_H_ */