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