Made code conditional to avoid error when building with MSVC++
This commit is contained in:
@@ -64,6 +64,7 @@ struct timezone {
|
|||||||
* To get microseconds accuracy we need to use QueryPerformanceCounter or
|
* To get microseconds accuracy we need to use QueryPerformanceCounter or
|
||||||
* timeGetTime for the elapsed time.
|
* timeGetTime for the elapsed time.
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
#if !defined(_MSC_VER)
|
||||||
int gettimeofday(
|
int gettimeofday(
|
||||||
struct timeval *tp,
|
struct timeval *tp,
|
||||||
void *tzp)
|
void *tzp)
|
||||||
@@ -111,6 +112,7 @@ int gettimeofday(
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Description: returns the current millisecond count
|
* Description: returns the current millisecond count
|
||||||
|
|||||||
Reference in New Issue
Block a user