[project @ 2001-01-30 10:59:04 by simonmar]
authorsimonmar <unknown>
Tue, 30 Jan 2001 10:59:04 +0000 (10:59 +0000)
committersimonmar <unknown>
Tue, 30 Jan 2001 10:59:04 +0000 (10:59 +0000)
put sys/types.h and sys/timeb.h includes under their own #ifdefs,
instead of all under HAVE_WINDOWS_H.

ghc/lib/std/Time.hsc

index f687944..2dd89d0 100644 (file)
@@ -3,7 +3,7 @@
 -- to compile on sparc-solaris.  Blargh.
 
 -- -----------------------------------------------------------------------------
--- $Id: Time.hsc,v 1.8 2001/01/26 17:51:54 rrt Exp $
+-- $Id: Time.hsc,v 1.9 2001/01/30 10:59:04 simonmar Exp $
 --
 -- (c) The University of Glasgow, 1995-2001
 --
@@ -104,12 +104,18 @@ module Time
 # include <time.h>
 #endif
 
-#ifdef HAVE_WINDOWS_H
-#include <windows.h>
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_TIMEB_H
 #include <sys/timeb.h>
 #endif
 
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
 import Ix
 import Locale