This allow to include msvcrt.h more times.
---
 mingw-w64-crt/include/msvcrt.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-crt/include/msvcrt.h b/mingw-w64-crt/include/msvcrt.h
index c6f10522471a..de708c60b528 100644
--- a/mingw-w64-crt/include/msvcrt.h
+++ b/mingw-w64-crt/include/msvcrt.h
@@ -1,10 +1,15 @@
-#include <winbase.h>
-
 #ifndef __LIBMSVCRT_OS__
 #error "This file should only be used in libmsvcrt-os.a"
 #endif
 
+#ifndef MSVCRT_H
+#define MSVCRT_H
+
+#include <winbase.h>
+
 static inline HANDLE __mingw_get_msvcrt_handle(void)
 {
     return GetModuleHandleW(L"msvcrt.dll");
 }
+
+#endif
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to