diff --git a/bacnet-stack/ports/win32/timer.c b/bacnet-stack/ports/win32/timer.c index 01415d5b..00e3fd1a 100644 --- a/bacnet-stack/ports/win32/timer.c +++ b/bacnet-stack/ports/win32/timer.c @@ -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