Check for Windows APIs before POSIX in Clock.hsc
commita95e1444ba28db43d7bb1aa449ac75359c067c27
authoradithyaov <adithya@composewell.com>
dateWed 4 Mar 2020, 15:42 (7 years ago)
parent0a9b7a4
src/Streamly/Internal/Data/Time/Clock.hsc+2−2
@@ -27,12 +27,12 @@
2727
2828#if __GHCJS__
2929#define HS_CLOCK_GHCJS 1
30+#elif defined(_WIN32)
31+#define HS_CLOCK_WINDOWS 1
3032#elif (defined (HAVE_TIME_H) && defined(HAVE_CLOCK_GETTIME))
3133#define HS_CLOCK_POSIX 1
3234#elif __APPLE__
3335#define HS_CLOCK_OSX 1
34−#elif defined(_WIN32)
35−#define HS_CLOCK_WINDOWS 1
3636#else
3737#error "Time/Clock functionality not implemented for this system"
3838#endif