From: mikaels Date: Fri, 10 Apr 2009 17:59:00 +0000 (+0000) Subject: Defined some of the non-standard data types for compatibility with Visual Studio. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=de3817f963a3ed45cc084414b2af078962010b61;p=bamtools.git Defined some of the non-standard data types for compatibility with Visual Studio. git-svn-id: svn+ssh://gene.bc.edu/home/subversion/Derek/BamTools/trunk@5 9efb377e-2e27-44b9-b91a-ec4abb80ed8b --- diff --git a/BamAlignment.h b/BamAlignment.h index b299ab3..e876f9b 100644 --- a/BamAlignment.h +++ b/BamAlignment.h @@ -7,7 +7,18 @@ #ifndef BAMALIGNMENT_H #define BAMALIGNMENT_H +#ifdef WIN32 +typedef char int8_t; +typedef unsigned char uint8_t; +typedef short int16_t; +typedef unsigned short uint16_t; +typedef int int32_t; +typedef unsigned int uint32_t; +typedef long long int64_t; +typedef unsigned long long uint64_t; +#else #include +#endif // C++ includes #include diff --git a/BamReader.h b/BamReader.h index 786f4c2..7748afa 100644 --- a/BamReader.h +++ b/BamReader.h @@ -44,11 +44,23 @@ // C library includes #include -#include #include #include #include +#ifdef WIN32 +typedef char int8_t; +typedef unsigned char uint8_t; +typedef short int16_t; +typedef unsigned short uint16_t; +typedef int int32_t; +typedef unsigned int uint32_t; +typedef long long int64_t; +typedef unsigned long long uint64_t; +#else +#include +#endif + // BGZF library includes/defines #include "bgzf.h" typedef BGZF* BamFile;