Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMTYPES_H
00016 #define GDCMTYPES_H
00017
00018 #include "gdcmConfigure.h"
00019 #include "gdcmWin32.h"
00020 #include "gdcmLegacyMacro.h"
00021
00022
00023 #ifdef GDCM_HAVE_STDINT_H
00024 #ifndef __STDC_LIMIT_MACROS
00025 #define __STDC_LIMIT_MACROS
00026 #endif // __STDC_LIMIT_MACROS
00027 #include <stdint.h>
00028
00029 #else
00030 #ifdef GDCM_HAVE_INTTYPES_H
00031
00032 #include <inttypes.h>
00033 #else
00034
00035
00036 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x0560) || defined(__MINGW32__)
00037 typedef signed char int8_t;
00038 typedef signed short int16_t;
00039 typedef signed int int32_t;
00040 typedef unsigned char uint8_t;
00041 typedef unsigned short uint16_t;
00042 typedef unsigned int uint32_t;
00043 typedef unsigned __int64 uint64_t;
00044 #elif defined(_MSC_VER)
00045 #include "stdint.h"
00046 #else
00047 #error "Sorry your plateform is not supported"
00048 #endif // defined(_MSC_VER) || defined(__BORLANDC__) && (__BORLANDC__ < 0x0560) || defined(__MINGW32__)
00049 #endif // GDCM_HAVE_INTTYPES_H
00050 #endif // GDCM_HAVE_STDINT_H
00051
00052
00053 #ifndef UINT32_MAX
00054 #define UINT32_MAX (4294967295U)
00055 #endif
00056
00057
00058 #endif //GDCMTYPES_H