gthr-win32.h: Define NOGDI before windows.h include to prevent w32api CC_NONE macro clash...

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

From-SVN: r245835
This commit is contained in:
Jonathan Yong 2017-03-02 11:03:23 +00:00 committed by Jonathan Yong
parent 126437c5da
commit db9f7f657e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
2017-03-02 Jonathan Yong <10walls@gmail.com>
* unwind-seh.c: Suppress warnings for RtlUnwindEx calls.

View File

@ -545,6 +545,7 @@ __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex)
#else /* ! __GTHREAD_HIDE_WIN32API */
#define NOGDI
#include <windows.h>
#include <errno.h>