This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]