Merge "Revert "Use libmingwex for gmtime_s""
diff --git a/src/crypto/time_support.c b/src/crypto/time_support.c
index bf9daed..ae0f496 100644
--- a/src/crypto/time_support.c
+++ b/src/crypto/time_support.c
@@ -59,12 +59,6 @@
 #define _POSIX_C_SOURCE 201410L  /* for gmtime_r */
 #endif
 
-#if defined(__MINGW32__)
-#define MINGW_HAS_SECURE_API 1  /* supplied by libmingwex */
-#include <sec_api/time_s.h>  /* for correct definition of gmtime_s */
-#undef MINGW_HAS_SECURE_API
-#endif
-
 #include <openssl/time_support.h>
 
 #include <time.h>