Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
#ifdef _WIN32
-#if (defined(_STAT_DEFINED) || defined(_INC_TIME) || defined(_INC_TYPES))
-#error Use safetime.h instead of time.h, stat.h, and types.h
-#endif
-
#undef FMTTIME
#define FMTTIME FMT64"d"
#if (_MSC_VER < 1400)
+#if (defined(_STAT_DEFINED) || defined(_INC_TIME) || defined(_INC_TYPES))
+#error Use safetime.h instead of time.h, stat.h, and types.h
+#endif
+
#define _STAT_DEFINED
#include <time.h>