Author: zoltan
Date: 2005-06-28 23:41:11 -0400 (Tue, 28 Jun 2005)
New Revision: 46694
Modified:
trunk/mono/mono/utils/ChangeLog
trunk/mono/mono/utils/mono-compiler.h
Log:
2005-06-28 Zoltan Varga <[EMAIL PROTECTED]>
* mono-compiler.h (trunc): Define this to be floor under win32.
Modified: trunk/mono/mono/utils/ChangeLog
===================================================================
--- trunk/mono/mono/utils/ChangeLog 2005-06-29 03:08:12 UTC (rev 46693)
+++ trunk/mono/mono/utils/ChangeLog 2005-06-29 03:41:11 UTC (rev 46694)
@@ -1,3 +1,7 @@
+2005-06-28 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * mono-compiler.h (trunc): Define this to be floor under win32.
+
2005-06-13 Geoff Norton <[EMAIL PROTECTED]>
* mono-compiler.h: Be slightly more conservative on ppc
Modified: trunk/mono/mono/utils/mono-compiler.h
===================================================================
--- trunk/mono/mono/utils/mono-compiler.h 2005-06-29 03:08:12 UTC (rev
46693)
+++ trunk/mono/mono/utils/mono-compiler.h 2005-06-29 03:41:11 UTC (rev
46694)
@@ -34,24 +34,24 @@
#endif
/* Deal with Microsoft C compiler differences */
-#ifdef _MSC_VER
-
-#include <float.h>
-#define isnan(x) _isnan(x)
-#define trunc(x) ((int)(x))
-#define isinf(x) (_isnan(x) ? 0 : (_fpclass(x) == _FPCLASS_NINF) ? -1 :
(_fpclass(x) == _FPCLASS_PINF) ? 1 : 0)
-
-#define popen _popen
-#define pclose _pclose
-
-#include <direct.h>
-#define mkdir(x) _mkdir(x)
-
-/* GCC specific functions aren't available */
-#define __builtin_return_address(x) NULL
-
-#endif /* _MSC_VER */
+#ifdef _MSC_VER
+#include <float.h>
+#define isnan(x) _isnan(x)
+#define trunc(x) floor((x))
+#define isinf(x) (_isnan(x) ? 0 : (_fpclass(x) == _FPCLASS_NINF) ? -1 :
(_fpclass(x) == _FPCLASS_PINF) ? 1 : 0)
+#define popen _popen
+#define pclose _pclose
+
+#include <direct.h>
+#define mkdir(x) _mkdir(x)
+
+/* GCC specific functions aren't available */
+#define __builtin_return_address(x) NULL
+
+#endif /* _MSC_VER */
+
+
#endif /* __UTILS_MONO_COMPILER_H__*/
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches