GDCM 2.2.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

gdcmTypes.h
Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004
    00005   Copyright (c) 2006-2011 Mathieu Malaterre
    00006   All rights reserved.
    00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00008
    00009      This software is distributed WITHOUT ANY WARRANTY; without even
    00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00011      PURPOSE.  See the above copyright notice for more information.
    00012
    00013 =========================================================================*/
    00014 #ifndef GDCMTYPES_H
    00015 #define GDCMTYPES_H
    00016
    00017 #include "gdcmConfigure.h"
    00018 #include "gdcmWin32.h"
    00019 #include "gdcmLegacyMacro.h"
    00020
    00021 //-----------------------------------------------------------------------------
    00022 #ifdef GDCM_HAVE_STDINT_H
    00023 #ifndef __STDC_LIMIT_MACROS
    00024 #define __STDC_LIMIT_MACROS
    00025 #endif // __STDC_LIMIT_MACROS
    00026 #include <stdint.h>
    00027 //#undef __STDC_LIMIT_MACROS
    00028 #else
    00029 #ifdef GDCM_HAVE_INTTYPES_H
    00030 // Old system only have this
    00031 #include <inttypes.h>   // For uint8_t uint16_t and uint32_t
    00032 #else
    00033 // Broken plateforms do not respect C99 and do not provide those typedef
    00034 // Special case for recent Borland compiler, comes with stdint.h
    00035 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x0560) || defined(__MINGW32__)
    00036 typedef  signed char         int8_t;
    00037 typedef  signed short        int16_t;
    00038 typedef  signed int          int32_t;
    00039 typedef  unsigned char       uint8_t;
    00040 typedef  unsigned short      uint16_t;
    00041 typedef  unsigned int        uint32_t;
    00042 typedef  unsigned __int64    uint64_t;
    00043 #elif defined(_MSC_VER)
    00044 #include "stdint.h"
    00045 #else
    00046 #error "Sorry, your platform is not supported"
    00047 #endif // defined(_MSC_VER) || defined(__BORLANDC__) && (__BORLANDC__ < 0x0560)  || defined(__MINGW32__)
    00048 #endif // GDCM_HAVE_INTTYPES_H
    00049 #endif // GDCM_HAVE_STDINT_H
    00050
    00051 // Basically for VS6 and bcc 5.5.1:
    00052 #ifndef UINT32_MAX
    00053 #define UINT32_MAX    (4294967295U)
    00054 #endif
    00055
    00056 //-----------------------------------------------------------------------------
    00057 #endif //GDCMTYPES_H