[MLton-commit] r6961

Ville Laurikari ville at mlton.org
Wed Oct 22 00:01:31 PDT 2008


Fixed to compile.  Also, math function prototypes are present on AIX
5.2 and later.

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

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

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

Modified: mlton/trunk/runtime/platform/aix.h
===================================================================
--- mlton/trunk/runtime/platform/aix.h	2008-10-20 07:27:36 UTC (rev 6960)
+++ mlton/trunk/runtime/platform/aix.h	2008-10-22 07:01:31 UTC (rev 6961)
@@ -37,15 +37,16 @@
 
 #define MLton_Platform_OS_host "aix"
 
-#include "feround.h"
-
 #define FE_TOWARDZERO 0 // FP_RND_RZ
 #define FE_TONEAREST  1 // FP_RND_RN
 #define FE_UPWARD     2 // FP_RND_RP
 #define FE_DOWNWARD   3 // FP_RND_RM
 
+int fegetround(void);
+void fesetround(int mode);
 int fpclassify64(double d);
 
+#ifndef _AIXVERSION_520
 /* These are GCC builtins, but <math.h> does not define the prototypes. */
 float acosf(float x);
 float asinf(float x);
@@ -67,6 +68,7 @@
 float sqrtf(float x);
 float tanf(float x);
 float tanhf(float x);
+#endif
 
 /* This should not conflict with existing flags. */
 #define MSG_DONTWAIT 0x1000000




More information about the MLton-commit mailing list