gdcmTypes.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 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 
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 //#undef __STDC_LIMIT_MACROS
00032 #else
00033 #ifdef CMAKE_HAVE_INTTYPES_H
00034 // Old system only have this
00035 #include <inttypes.h>   // For uint8_t uint16_t and uint32_t
00036 #else
00037 // Broken plateforms do not respect C99 and do not provide those typedef
00038 // Special case for recent Borland compiler, comes with stdint.h
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 // Basically for VS6 and bcc 5.5.1:
00056 #ifndef UINT32_MAX
00057 #define UINT32_MAX    (4294967295U)
00058 #endif
00059 
00060 //-----------------------------------------------------------------------------
00061 #endif //__gdcmTypes_h

Generated on Thu Mar 4 16:20:45 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo