--- a/utils/smallut.cpp
+++ b/utils/smallut.cpp
@@ -17,7 +17,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#define _POSIX_THREAD_SAFE_FUNCTIONS
 #ifdef _WIN32
 // needed for localtime_r under mingw?
 #define _POSIX_THREAD_SAFE_FUNCTIONS
@@ -25,7 +24,6 @@
 #include <time.h>
 #include <ctype.h>
 #include <errno.h>
-#include <time.h>
 #include <string.h>
 #include <math.h>