mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-18 13:55:23 +02:00
guard Systime against being included on UNIX/OS X
This commit is contained in:
parent
1daaf561de
commit
885cee28c5
2 changed files with 12 additions and 4 deletions
|
@ -8,6 +8,8 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
/**
|
||||
* gettimeofday
|
||||
* Implementation according to:
|
||||
|
@ -52,4 +54,6 @@ int __cdecl gettimeofday(struct timeval *__restrict__ tp,
|
|||
/** Always return 0 as per Open Group Base Specifications Issue 6.
|
||||
Do not set errno on error. */
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
|
@ -8,11 +8,15 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#ifndef __Systime__
|
||||
#define __Systime__
|
||||
#ifndef hifi_Systime_h
|
||||
#define hifi_Systime_h
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
int __cdecl gettimeofday(struct timeval *__restrict__, void *__restrict__);
|
||||
|
||||
#endif __Systime__
|
||||
#endif
|
||||
|
||||
#endif // hifi_Systime_h
|
Loading…
Reference in a new issue