Skip to content

Commit

Permalink
Merge pull request #52 from RyanGlScott/master
Browse files Browse the repository at this point in the history
Fix linking issues on 32-bit Windows
  • Loading branch information
CetinSert authored Jul 2, 2018
2 parents 00435dd + 8436f0e commit ef60bd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cbits/hs_clock_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ static void to_timespec_from_100ns(ULONGLONG t_100ns, long long *t)
t[1] = 100*(long)(t_100ns % 10000000UL);
}

/* See https://ghc.haskell.org/trac/ghc/ticket/15094 */
#if defined(_WIN32) && !defined(_WIN64)
__attribute__((optimize("-fno-expensive-optimizations")))
#endif
void hs_clock_win32_gettime_monotonic(long long* t)
{
LARGE_INTEGER time;
Expand Down

0 comments on commit ef60bd5

Please sign in to comment.