Author: spouliot
Date: 2005-03-29 13:07:21 -0500 (Tue, 29 Mar 2005)
New Revision: 42345
Modified:
trunk/mono/mono/utils/ChangeLog
trunk/mono/mono/utils/mono-compiler.h
Log:
2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
* mono-compiler.h: Added defines to make it easier to compile mono and
it's unmanaged tools using the Microsoft C compiler (VS.NET 2005).
Modified: trunk/mono/mono/utils/ChangeLog
===================================================================
--- trunk/mono/mono/utils/ChangeLog 2005-03-29 18:02:04 UTC (rev 42344)
+++ trunk/mono/mono/utils/ChangeLog 2005-03-29 18:07:21 UTC (rev 42345)
@@ -1,3 +1,8 @@
+2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * mono-compiler.h: Added defines to make it easier to compile mono and
+ it's unmanaged tools using the Microsoft C compiler (VS.NET 2005).
+
2005-02-27 Zoltan Varga <[EMAIL PROTECTED]>
* mono-codeman.c: Pass MAP_32BIT to mmap on amd64 to force generated
Modified: trunk/mono/mono/utils/mono-compiler.h
===================================================================
--- trunk/mono/mono/utils/mono-compiler.h 2005-03-29 18:02:04 UTC (rev
42344)
+++ trunk/mono/mono/utils/mono-compiler.h 2005-03-29 18:07:21 UTC (rev
42345)
@@ -31,5 +31,25 @@
#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 */
+
+
#endif /* __UTILS_MONO_COMPILER_H__*/
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches