GDCM 2.0.17
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 Mathieu Malaterre 00007 All rights reserved. 00008 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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 //#undef __STDC_LIMIT_MACROS 00029 #else 00030 #ifdef GDCM_HAVE_INTTYPES_H 00031 // Old system only have this 00032 #include <inttypes.h> // For uint8_t uint16_t and uint32_t 00033 #else 00034 // Broken plateforms do not respect C99 and do not provide those typedef 00035 // Special case for recent Borland compiler, comes with stdint.h 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 platform 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 // Basically for VS6 and bcc 5.5.1: 00053 #ifndef UINT32_MAX 00054 #define UINT32_MAX (4294967295U) 00055 #endif 00056 00057 //----------------------------------------------------------------------------- 00058 #endif //GDCMTYPES_H