This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
winnt.h: VOID already defined
- To: mingw-patches at lists dot sourceforge dot net, cygwin-patches at cygwin dot com
- Subject: winnt.h: VOID already defined
- From: DJ Delorie <dj at redhat dot com>
- Date: Thu, 5 Jul 2001 16:28:53 -0400
If I try to cross-build a native cygwin expect under linux, tcl's
headers already define VOID to void, and thus winnt.h is missing a
number of important typedefs. This patch seems to fix it, but I'm
worried that this just hides a true problem elsewhere.
Index: winnt.h
===================================================================
RCS file: /cvs/uberbaum/winsup/w32api/include/winnt.h,v
retrieving revision 1.22
diff -p -3 -r1.22 winnt.h
*** winnt.h 2001/05/17 21:13:10 1.22
--- winnt.h 2001/07/05 20:07:35
*************** extern "C" {
*** 41,50 ****
#ifndef VOID
#define VOID void
typedef char CHAR;
typedef short SHORT;
typedef long LONG;
- #endif
typedef CHAR CCHAR;
typedef unsigned char UCHAR,*PUCHAR;
typedef unsigned short USHORT,*PUSHORT;
--- 41,50 ----
#ifndef VOID
#define VOID void
+ #endif
typedef char CHAR;
typedef short SHORT;
typedef long LONG;
typedef CHAR CCHAR;
typedef unsigned char UCHAR,*PUCHAR;
typedef unsigned short USHORT,*PUSHORT;