Subject: | [MS Windows] Not all (if any) MS compilers define ULLONG_MAX |
Hi,
The subject pretty much says it all. Here's the patch I applied to Map.xs to enable 0.60 to build using my x64 Platform SDK compiler:
--- lib/File/Map.xs_orig 2013-10-01 21:19:08 +1000
+++ lib/File/Map.xs 2013-10-01 21:21:17 +1000
@@ -545,7 +545,11 @@
}
#if defined(WIN32) || defined(__CYGWIN__)
+#ifndef ULLONG_MAX
+#define PTR_MAX _UI64_MAX /* MS Platform SDK crt */
+#else
#define PTR_MAX ULLONG_MAX
+#endif
#else
#define PTR_MAX ULONG_MAX
#endif
Cheers,
Rob