]> Creatis software - gdcm.git/blob - src/gdcmCommon.h
a86930e25d309159e5eba701b8b633421db34ac2
[gdcm.git] / src / gdcmCommon.h
1 //gdcmCommon.h
2
3 #ifndef GDCMCOMMON_H
4 #define GDCMCOMMON_H
5
6 #ifdef __GNUC__
7 #include <stdint.h>
8 #define guint16 uint16_t
9 #define guint32 uint32_t
10 #define gint16  int16_t
11 #define gint32  int32_t
12 #endif
13
14 #ifdef _MSC_VER 
15 typedef  unsigned short guint16;
16 typedef  unsigned int   guint32;
17 typedef  short          gint16;
18 typedef  int            gint32;
19 #endif
20
21 #ifdef _MSC_VER
22 #define GDCM_EXPORT __declspec( dllexport )
23 #else
24 #define GDCM_EXPORT
25 #endif
26
27 #include <string>
28 #ifdef _MSC_VER
29 using namespace std;  // string type lives in the std namespace on VC++
30 #endif
31
32 typedef string TagKey;
33 typedef string TagName;
34
35 #endif