This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: [mingw32] Small fix to gthr-win32.c
- From: AWLaFramboise at aol dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Jun 2003 03:49:05 -0400
- Subject: PATCH: [mingw32] Small fix to gthr-win32.c
Hi,
This change is needed to allow mainline to compile
on mingw32. It will not bootstrap without it. Its fairly
trivial and obvious, and has been tested as part of
MinGW's separate patchset. I recommend it be applied
immediately to mainline (and 3.3 branch, as it lacks this
also) as soon as possible to restore working order for
mingw users.
2003-06-28 Aaron W. LaFramboise <awlaframboise@aol.com>
* config/i386/mingw32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
Index: gcc/gcc/config/i386/gthr-win32.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/i386/gthr-win32.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 gthr-win32.c
*** gcc/gcc/config/i386/gthr-win32.c 11 Jun 2002 05:25:44 -0000 1.2
--- gcc/gcc/config/i386/gthr-win32.c 28 Jun 2003 07:09:31 -0000
*************** Software Foundation, 59 Temple Place - S
*** 32,38 ****
#ifndef __GTHREAD_HIDE_WIN32API
! # define __GTHREAD_HIDE_WIN32API
#endif
#include <gthr-win32.h>
#include <windows.h>
--- 32,38 ----
#ifndef __GTHREAD_HIDE_WIN32API
! # define __GTHREAD_HIDE_WIN32API 1
#endif
#include <gthr-win32.h>
#include <windows.h>
Thanks,
Aaron