]> git.donarmstrong.com Git - bamtools.git/commitdiff
Defined some of the non-standard data types for compatibility with Visual Studio.
authormikaels <mikaels@9efb377e-2e27-44b9-b91a-ec4abb80ed8b>
Fri, 10 Apr 2009 17:59:00 +0000 (17:59 +0000)
committermikaels <mikaels@9efb377e-2e27-44b9-b91a-ec4abb80ed8b>
Fri, 10 Apr 2009 17:59:00 +0000 (17:59 +0000)
git-svn-id: svn+ssh://gene.bc.edu/home/subversion/Derek/BamTools/trunk@5 9efb377e-2e27-44b9-b91a-ec4abb80ed8b

BamAlignment.h
BamReader.h

index b299ab33e2a5d71c64720ba791c56e4cb5467b5c..e876f9be2fddcfe68e68e589facbe9196863d6b4 100644 (file)
@@ -7,7 +7,18 @@
 #ifndef BAMALIGNMENT_H\r
 #define BAMALIGNMENT_H\r
 \r
+#ifdef WIN32\r
+typedef char                 int8_t;\r
+typedef unsigned char       uint8_t;\r
+typedef short               int16_t;\r
+typedef unsigned short     uint16_t;\r
+typedef int                 int32_t;\r
+typedef unsigned int       uint32_t;\r
+typedef long long           int64_t;\r
+typedef unsigned long long uint64_t;\r
+#else\r
 #include <stdint.h>\r
+#endif\r
 \r
 // C++ includes\r
 #include <string>\r
index 786f4c2aed86b8c5f13e7f76be01e73eeb9dc6b7..7748afa84539d4fd6720f5155711a0518d307877 100644 (file)
 \r
 // C library includes\r
 #include <assert.h>\r
-#include <stdint.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
 #include <string.h>\r
 \r
+#ifdef WIN32\r
+typedef char                 int8_t;\r
+typedef unsigned char       uint8_t;\r
+typedef short               int16_t;\r
+typedef unsigned short     uint16_t;\r
+typedef int                 int32_t;\r
+typedef unsigned int       uint32_t;\r
+typedef long long           int64_t;\r
+typedef unsigned long long uint64_t;\r
+#else\r
+#include <stdint.h>\r
+#endif\r
+\r
 // BGZF library includes/defines\r
 #include "bgzf.h"\r
 typedef BGZF* BamFile;\r