--- a/src/libs/3rdparty/libarchive/config/win/config.h
+++ b/src/libs/3rdparty/libarchive/config/win/config.h
@@ -1212,7 +1212,9 @@
 #define HAVE__FSEEKI64 1
 
 /* Define to 1 if you have the `_get_timezone' function. */
+#ifdef _UCRT
 #define HAVE__GET_TIMEZONE 1
+#endif
 
 /* Define to 1 if you have the `_gmtime64_s' function. */
 #define HAVE__GMTIME64_S 1
