From ec2b3b3b3f79722a05e8a2d8742cebb674ce0bce Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Wed, 25 Jan 2006 15:21:28 +0000 Subject: [PATCH] COMP: Fix compilation on mingw (already had itoa) and borland (need __int64) --- libopenjpeg/event.c | 2 +- libopenjpeg/fix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libopenjpeg/event.c b/libopenjpeg/event.c index 0826046f..bdf326a0 100644 --- a/libopenjpeg/event.c +++ b/libopenjpeg/event.c @@ -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); diff --git a/libopenjpeg/fix.c b/libopenjpeg/fix.c index 0f5f49b4..e9ba82be 100644 --- a/libopenjpeg/fix.c +++ b/libopenjpeg/fix.c @@ -30,7 +30,7 @@ #include "fix.h" -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__BORLANDC__) #define int64 __int64 #else #define int64 long long