[MLton-commit] r6535

Ville Laurikari ville at mlton.org
Mon Apr 7 00:39:22 PDT 2008


HP-UX 11.11 and older don't define UINTPTR_MAX properly.

----------------------------------------------------------------------

U   mlton/trunk/runtime/platform/hpux.h

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/platform/hpux.h
===================================================================
--- mlton/trunk/runtime/platform/hpux.h	2008-04-07 07:37:58 UTC (rev 6534)
+++ mlton/trunk/runtime/platform/hpux.h	2008-04-07 07:39:22 UTC (rev 6535)
@@ -101,3 +101,8 @@
 #define PRId32 "d"
 
 #define SIZE_MAX ((size_t)SSIZE_MAX * 2 + 1)
+
+#if HPUX_VERSION <= 1111
+#undef UINTPTR_MAX
+#define UINTPTR_MAX ULONG_MAX
+#endif




More information about the MLton-commit mailing list