summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorNicolas Trangez <ikke@nicolast.be>2022-09-21 13:49:58 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-21 02:58:39 -0400
commita2af7c4c59ef24a71cc6cab7bd6b07d12f02aad1 (patch)
tree08e881fc1d61ca41c5f9297cbcb0b2bbb545c181 /rts/win32
parent8cd6f435e60f9dd14ad55a0002ff833536e9ccb2 (diff)
downloadhaskell-a2af7c4c59ef24a71cc6cab7bd6b07d12f02aad1.tar.gz
build: get rid of `HAVE_TIME_H`
As advertized by `autoreconf`: > All current systems provide time.h; it need not be checked for. Hence, remove the check for it in `configure.ac` and remove conditional inclusion of the header in `HAVE_TIME_H` blocks where applicable. The `time.h` header was being included in various source files without a `HAVE_TIME_H` guard already anyway.
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/GetTime.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rts/win32/GetTime.c b/rts/win32/GetTime.c
index e0f5e7d406..1722e14f8f 100644
--- a/rts/win32/GetTime.c
+++ b/rts/win32/GetTime.c
@@ -11,9 +11,7 @@
#include <windows.h>
-#if defined(HAVE_TIME_H)
-# include <time.h>
-#endif
+#include <time.h>
/* Convert FILETIMEs into secs */