X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmCommon.h;h=40e651014c4df5bfa2a98f2085e2871c0cd314f5;hb=fdef18c217469cc507704db6d686ce195e82e4ce;hp=a74d6d84da462ee9f08d8ef06f74cd94a5a40db6;hpb=adc8d5da8f5fd92da1cd74d2f6b2efaac14d8889;p=gdcm.git diff --git a/src/gdcmCommon.h b/src/gdcmCommon.h index a74d6d84..40e65101 100644 --- a/src/gdcmCommon.h +++ b/src/gdcmCommon.h @@ -24,11 +24,19 @@ #endif //_MSC_VER #ifdef __GNUC__ +#ifndef HAVE_NO_STDINT_H #include #define guint16 uint16_t #define guint32 uint32_t #define gint16 int16_t #define gint32 int32_t +#else +typedef unsigned short guint16; +typedef unsigned int guint32; +typedef short gint16; +typedef int gint32; +#define UINT32_MAX (4294967295U) +#endif //HAVE_NO_STDINT_H #endif #ifdef _MSC_VER @@ -63,5 +71,4 @@ enum FileType { //For now gdcm is not willing cmake, try to be more quiet //#cmakedefine GDCM_NO_ANSI_STRING_STREAM - #endif