Fixed MinGW compilation error in jp2image.cpp u_int32_t not defined (in stdint.h/Linux, types.h/Mac)

This is an unexpected new defect as MinGW has previously build OK.
v0.27.3
Robin Mills 11 years ago
parent e5d3dd8138
commit 7a530fc49a

@ -39,6 +39,12 @@
# include "exv_conf.h" # include "exv_conf.h"
#endif #endif
#if defined(__MINGW32__) || defined(__MINGW64__)
# ifndef __MINGW__
# define __MINGW__
# endif
#endif
#include "version.hpp" #include "version.hpp"
// + standard includes // + standard includes
@ -68,6 +74,13 @@ typedef __int64 int64_t;
# define EXV_WIDEN(t) L ## t # define EXV_WIDEN(t) L ## t
#endif #endif
#ifdef __MINGW__
typedef unsigned char u_int8_t;
typedef unsigned short u_int16_t;
typedef unsigned int u_int32_t;
typedef unsigned long long u_int64_t;
#endif
/*! /*!
@brief Macro to make calls to member functions through a pointer more readable. @brief Macro to make calls to member functions through a pointer more readable.
See the C++ FAQ LITE, item See the C++ FAQ LITE, item

@ -37,12 +37,6 @@ EXIV2_RCSID("@(#) $Id$")
# include "exv_conf.h" # include "exv_conf.h"
#endif #endif
#if defined(__MINGW32__) || defined(__MINGW64__)
# ifndef __MINGW__
# define __MINGW__
# endif
#endif
#if defined(__CYGWIN__) || defined(__MINGW__) #if defined(__CYGWIN__) || defined(__MINGW__)
#include <windows.h> #include <windows.h>
#endif #endif

Loading…
Cancel
Save