guard Systime against being included on UNIX/OS X

This commit is contained in:
Stephen Birarda 2014-04-10 11:28:22 -07:00
parent 1daaf561de
commit 885cee28c5
2 changed files with 12 additions and 4 deletions

View file

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

View file

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