Made code conditional to avoid error when building with MSVC++

This commit is contained in:
petermcs
2011-09-20 19:11:41 +00:00
parent 3c9f0c9298
commit a25a7a238d
+2
View File
@@ -64,6 +64,7 @@ struct timezone {
* To get microseconds accuracy we need to use QueryPerformanceCounter or
* timeGetTime for the elapsed time.
*************************************************************************/
#if !defined(_MSC_VER)
int gettimeofday(
struct timeval *tp,
void *tzp)
@@ -111,6 +112,7 @@ int gettimeofday(
return 0;
}
#endif
/*************************************************************************
* Description: returns the current millisecond count