COMP: Fix compilation on mingw (already had itoa) and borland (need __int64)
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 25 Jan 2006 15:21:28 +0000 (15:21 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 25 Jan 2006 15:21:28 +0000 (15:21 +0000)
libopenjpeg/event.c
libopenjpeg/fix.c

index 0826046f8810da151cb165912f1f776419b305c8..bdf326a03f4585e94fc9e669fc6c1164b677bb12 100644 (file)
@@ -30,7 +30,7 @@
      Utility functions
    ==========================================================*/
 
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__MINGW32__)
 static char*
 i2a(unsigned i, char *a, unsigned r) {
        if (i/r > 0) a = i2a(i/r,a,r);
index 0f5f49b41d5d6032f1018648d9c70c2a56ede602..e9ba82be8a39d3a886ebedafdffa388f6ccc5b8d 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "fix.h"
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__BORLANDC__)
 #define int64 __int64
 #else
 #define int64 long long