diff mbox

Fix libgfortran build for mingw*

Message ID 1c155813-7178-3a1c-cc2d-bdf21d6988a1@gmail.com
State New
Headers show

Commit Message

Jonathan Yong March 2, 2017, 11:12 a.m. UTC
Applied to trunk, tested with x86_64-w64-mingw32.
 	
Changelog:

2017-03-02  Jonathan Yong <10walls@gmail.com>

        * config/i386/gthr-win32.h: Define NOGDI before
        windows.h include to prevent w32api CC_NONE macro
        clash with libgfortran.
diff mbox

Patch

--- trunk/libgcc/config/i386/gthr-win32.h	2017/03/02 11:00:28	245834
+++ trunk/libgcc/config/i386/gthr-win32.h	2017/03/02 11:03:23	245835
@@ -545,6 +545,7 @@ 
 
 #else /* ! __GTHREAD_HIDE_WIN32API */
 
+#define NOGDI
 #include <windows.h>
 #include <errno.h>