mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 10:48:18 +08:00
Fix clock_gettime conflict (MinGW)
This commit is contained in:
@@ -5085,6 +5085,7 @@ extern "C" {
|
||||
return (t);
|
||||
}
|
||||
|
||||
#ifndef WIN_PTHREADS_TIME_H
|
||||
int clock_gettime(int X, struct timespec *tv) {
|
||||
LARGE_INTEGER t;
|
||||
FILETIME f;
|
||||
@@ -5122,6 +5123,7 @@ extern "C" {
|
||||
tv->tv_nsec = t.QuadPart % 1000000 * 1000;
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
#elif __APPLE__ && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC 1
|
||||
|
Reference in New Issue
Block a user