]> Creatis software - gdcm.git/blobdiff - src/gdcmCommon.h
#include <string>
[gdcm.git] / src / gdcmCommon.h
index ba376a4228e5d2468a886f483008c1b6c71fa402..a86930e25d309159e5eba701b8b633421db34ac2 100644 (file)
@@ -7,11 +7,15 @@
 #include <stdint.h>
 #define guint16 uint16_t
 #define guint32 uint32_t
+#define gint16  int16_t
+#define gint32  int32_t
 #endif
 
 #ifdef _MSC_VER 
 typedef  unsigned short guint16;
 typedef  unsigned int   guint32;
+typedef  short                 gint16;
+typedef  int                   gint32;
 #endif
 
 #ifdef _MSC_VER
@@ -21,6 +25,10 @@ typedef  unsigned int   guint32;
 #endif
 
 #include <string>
+#ifdef _MSC_VER
+using namespace std;  // string type lives in the std namespace on VC++
+#endif
+
 typedef string TagKey;
 typedef string TagName;