mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: net: fix build on newer mingw versions
This commit is contained in:
1 parent
f3ce20fb6e
commit
57041735cb
1 file changed
+2
Vendored
+2
@@ -1150,6 +1150,7 @@ extern "C" {
|
||||
return t;
|
||||
}
|
||||
|
||||
#ifndef __MINGW32__
|
||||
int clock_gettime(int X, struct timespec* tv) {
|
||||
LARGE_INTEGER t;
|
||||
FILETIME f;
|
||||
@@ -1193,6 +1194,7 @@ extern "C" {
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#elif __APPLE__ && (__MAC_OS_X_VERSION_MIN_REQUIRED < 101200 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000) && !defined(CLOCK_MONOTONIC)
|
||||
#define CLOCK_MONOTONIC 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user