don't unconditionally redefine CLOCK_MONOTONIC on Windows, also set the

redefinition to the actual value it's shadowing
This commit is contained in:
Nadia Holmquist Pedersen 2024-11-11 14:47:14 +01:00
parent 95c5f33311
commit e0475b06f6

View File

@ -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)
{