From a25a7a238defc33fbc431e7567f7c372a433ae9d Mon Sep 17 00:00:00 2001 From: petermcs Date: Tue, 20 Sep 2011 19:11:41 +0000 Subject: [PATCH] Made code conditional to avoid error when building with MSVC++ --- bacnet-stack/ports/win32/timer.c | 2 ++ 1 file changed, 2 insertions(+) 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