1. Christian Heimes
  2. FreeImage

Commits

drolon  committed 4a0a2cd

fixed Linux compiler errors with 64-bit types

  • Participants
  • Parent commits bc83da3
  • Branches default

Comments (0)

Files changed (1)

File Source/LibRawLite/libraw/libraw_types.h

View file
 #include "libraw_const.h"
 #include "libraw_version.h"
 
-#ifdef WIN32
-typedef __int64 INT64;
+#ifndef _MSC_VER
+// define portable types for 32-bit / 64-bit OS
+#include <inttypes.h>
+typedef int64_t INT64;
+typedef uint64_t UINT64;
+#else
+// MS is not C99 ISO compliant
+typedef signed __int64 INT64;
 typedef unsigned __int64 UINT64;
-#else
-typedef long long INT64;
-typedef unsigned long long UINT64;
-#endif
+#endif // _MSC_VER
 
 typedef unsigned char uchar;
 typedef unsigned short ushort;