From 54a03219311695ee3b449d76e56a14ded59496e6 Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 23 May 2005 14:42:30 +0000 Subject: [PATCH] Should avoid of lot of warnings with gcc --- .../libjasper/include/jasper/jas_config.h.in | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in b/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in index caaf5c60..ad481388 100644 --- a/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in +++ b/src/gdcmjasper/src/libjasper/include/jasper/jas_config.h.in @@ -31,8 +31,8 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_IO_H -///* Define to 1 if you have the `m' library (-lm). */ -//#define HAVE_LIBM 1 +/* Define to 1 if you have the `m' library (-lm). */ +/* #define HAVE_LIBM 1 */ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_LIMITS_H @@ -67,11 +67,11 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_UNISTD_H -///* Have variable length arrays */ -//#define HAVE_VLA 1 +/* Have variable length arrays */ +/* #define HAVE_VLA 1 */ -///* Define to 1 if you have the `vprintf' function. */ -//#define HAVE_VPRINTF 1 +/* Define to 1 if you have the `vprintf' function. */ +/* #define HAVE_VPRINTF 1 */ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_WINDOWS_H @@ -137,7 +137,7 @@ #cmakedefine WORDS_BIGENDIAN /* Define to 1 if the X Window System is missing or not being used. */ -//#define X_DISPLAY_MISSING 1 +/*#define X_DISPLAY_MISSING 1 */ /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ @@ -146,7 +146,7 @@ if it is not supported. */ /* #undef inline */ -// I have #define for types... +/* I have #define for types... */ #if 0 /* Define to `long long' if does not define. */ #define longlong long long @@ -173,6 +173,7 @@ /* #undef ushort */ #endif +/* #ifndef HAVE_SYS_TYPES_H #else typedef unsigned char uchar; @@ -183,6 +184,21 @@ typedef long long longlong; typedef unsigned long long ulonglong; /*#define ssize_t int*/ #endif +*/ + +/* Copied from gdcmCommon.h */ +/* hope it works ... */ +/* Broken plateform do not respect C99 and do not provide those typedef */ +#if defined(_MSC_VER) || defined(__BORLANDC__) +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +#define UINT32_MAX (4294967295U) +#endif + #endif -- 2.45.2