#undef DEBUG_OVERFLOW
#endif
+#if defined(_MSC_VER) && _MSC_VER < 1300
+# pragma warning ( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */
+#endif
+
/* Define to 1 if you have the <dlfcn.h> header file. */
#cmakedefine HAVE_DLFCN_H
+#if 0
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
#endif
#cmakedefine GDCM_TYPE_CONVERT_UI64_TO_DOUBLE
-// On win32 there is no long long therefore use __int64 instead
-//
+/* On win32 there is no long long therefore use __int64 instead */
+
#ifndef HAVE_SYS_TYPES_H
typedef unsigned short ushort;
typedef unsigned int uint;
typedef __int64 longlong;
#else
#error this is not supposed to happen please report your compiler
-#endif
+#endif /*GDCM_TYPE_USE___INT64*/
#else
+#cmakedefine HAVE_GDCM_SIZEOF_UINT
+#cmakedefine HAVE_GDCM_SIZEOF_USHORT
+#cmakedefine HAVE_GDCM_SIZEOF_ULONG
+
#ifdef GDCM_TYPE_USE_LONG_LONG
+#ifndef HAVE_GDCM_SIZEOF_USHORT
+typedef unsigned short ushort;
+#endif
+#ifndef HAVE_GDCM_SIZEOF_UINT
+typedef unsigned int uint;
+#endif
+#ifndef HAVE_GDCM_SIZEOF_ULONG
+typedef unsigned long ulong;
+#endif
typedef unsigned char uchar;
typedef unsigned long long ulonglong;
typedef long long longlong;
#else
-#error this is not supposed to happen please report your compiler
-#endif
+typedef unsigned short ushort;
+typedef unsigned int uint;
+typedef unsigned long ulong;
+typedef unsigned char uchar;
+typedef unsigned __int64 ulonglong;
+typedef __int64 longlong;
+#endif /* GDCM_TYPE_USE_LONG_LONG */
/* #define ssize_t int */
+#endif /* HAVE_SYS_TYPES_H */
+
+/* check how the compiler implement the return of malloc(0) */
+/* jasper does not support the case where it returns NULL */
+#cmakedefine NULL_ON_MALLOC_0
+
+#cmakedefine JASPERSTATIC
+#cmakedefine JASPERDLL
+
+/* a function referenced thru JASEXTERNs: */
+#if defined( _WIN32 ) && defined (JASPERDLL)
+#define JASGLOBAL(type) __declspec(dllexport) type
+#else
+#define JASGLOBAL(type) type
+#endif
+
+/* a reference to a JASGLOBAL function: */
+#if defined(_WIN32) && !defined(JASPERSTATIC)
+#ifdef JASPERDLL
+#define JASEXTERN(type) __declspec(dllexport) type
+#else
+#define JASEXTERN(type) __declspec(dllimport) type
+#endif
+#else
+#define JASEXTERN(type) extern type
#endif