[MLton-commit] r4471

Stephen Weeks MLton@mlton.org
Sat, 6 May 2006 17:51:57 -0700


stdint.h is missing on some platforms.  I took the #ifdef from the old
types.h.


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

U   mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h

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

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2006-05-06 20:37:29 UTC (rev 4470)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2006-05-07 00:51:54 UTC (rev 4471)
@@ -38,7 +38,13 @@
 #include <stdarg.h>
 #include <stdbool.h>
 #include <stddef.h>
+#if (defined(__hpux__) || defined (__OpenBSD__))
+#include <inttypes.h>
+#elif (defined (__sun__))
+#include <sys/int_types.h>
+#else
 #include <stdint.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>