From 875e873f268df7de891d4b5a5317a50014a553b7 Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 11 Jul 2019 17:05:15 -0500 Subject: [PATCH] tjutil.c: Fix compiler warning with Visual Studio Apparently windows.h includes stdlib.h, which defines the max() and min() macros, so we need to ensure that tjutil.h is included after that. --- tjutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tjutil.c b/tjutil.c index e4f9b426..2018160b 100644 --- a/tjutil.c +++ b/tjutil.c @@ -26,11 +26,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include "tjutil.h" - #ifdef _WIN32 #include +#include "tjutil.h" static double getFreq(void) { @@ -58,6 +57,7 @@ double getTime(void) #include #include +#include "tjutil.h" double getTime(void) {