don't try to compile this on Unix
authorSimon Marlow <simonmar@microsoft.com>
Mon, 4 Dec 2006 09:54:27 +0000 (09:54 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 4 Dec 2006 09:54:27 +0000 (09:54 +0000)
cbits/Win32Utils.c

index dca270a..e034355 100644 (file)
@@ -4,6 +4,8 @@
    Useful Win32 bits\r
    ------------------------------------------------------------------------- */\r
 \r
+#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)\r
+\r
 #include "HsBase.h"\r
 \r
 /* This is the error table that defines the mapping between OS error\r
@@ -119,3 +121,5 @@ HsInt getTicksOfDay(void)
     return (HsInt)t;\r
 }\r
 \r
+#endif\r
+\r