headers: crt: disable some drive API's in winstore builds

It's not allowed (as far as 2016 doc goes):
https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019

"These functions are obsolete or are not thread-safe."
"Not available."

Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/crt/direct.h b/mingw-w64-headers/crt/direct.h
index 8f8cee0..3232902 100644
--- a/mingw-w64-headers/crt/direct.h
+++ b/mingw-w64-headers/crt/direct.h
@@ -31,6 +31,7 @@
   _CRTIMP int __cdecl _chdir(const char *_Path);
   _CRTIMP int __cdecl _mkdir(const char *_Path);
   _CRTIMP int __cdecl _rmdir(const char *_Path);
+#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
   _CRTIMP int __cdecl _chdrive(int _Drive);
   _CRTIMP int __cdecl _getdrive(void);
   _CRTIMP unsigned long __cdecl _getdrives(void);
@@ -39,6 +40,7 @@
 #define _GETDISKFREE_DEFINED
   _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
 #endif
+#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
 
 #ifndef _WDIRECT_DEFINED
 #define _WDIRECT_DEFINED
diff --git a/mingw-w64-headers/crt/dos.h b/mingw-w64-headers/crt/dos.h
index c5250e7..8cf61f1 100644
--- a/mingw-w64-headers/crt/dos.h
+++ b/mingw-w64-headers/crt/dos.h
@@ -15,6 +15,7 @@
 extern "C" {
 #endif
 
+#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
 #ifndef _DISKFREE_T_DEFINED
 #define _DISKFREE_T_DEFINED
 
@@ -38,6 +39,7 @@
 #define _GETDISKFREE_DEFINED
   _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
 #endif
+#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
 
 #if (defined(_X86_) && !defined(__x86_64))
   void __cdecl _disable(void);