mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
don't unconditionally redefine CLOCK_MONOTONIC on Windows, also set the
redefinition to the actual value it's shadowing
This commit is contained in:
parent
95c5f33311
commit
e0475b06f6
@ -54,7 +54,9 @@ const u8 kServerMAC[6] = {0x00, 0xAB, 0x33, 0x28, 0x99, 0x44};
|
||||
// https://stackoverflow.com/questions/5404277/porting-clock-gettime-to-windows
|
||||
|
||||
struct timespec { long tv_sec; long tv_nsec; };
|
||||
#define CLOCK_MONOTONIC 1312
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#endif
|
||||
|
||||
int clock_gettime(int, struct timespec *spec)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user