This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: w32api: incompatible with gcc-4.3
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 13 Mar 2009 04:49:44 +0000
- Subject: Re: w32api: incompatible with gcc-4.3
- References: <49B9CA2C.9050902@users.sourceforge.net>
Yaakov (Cygwin/X) wrote:
> Trying to compile XWin with cygwin-1.7.0-43, gcc-4.3.2-2 and w32api-3.13-1:
>
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../include/w32api/winspool.h:255:
> error: two or more data types in declaration specifiers
> Each of those lines read "DWORD Status;".
rofl. Not after preprocessing they don't:
typedef struct _JOB_INFO_1A {
DWORD JobId;
LPSTR pPrinterName;
LPSTR pMachineName;
LPSTR pUserName;
LPSTR pDocument;
LPSTR pDatatype;
LPSTR pStatus;
DWORD int;
^^^^^^^^^^^^ !
DWORD Priority;
DWORD Position;
DWORD TotalPages;
DWORD PagesPrinted;
SYSTEMTIME Submitted;
} JOB_INFO_1A,*PJOB_INFO_1A,*LPJOB_INFO_1A;
Somewhere, someone has typed "#define Status int". You might try building
the pre-processed source again with something like "-dD" to see where it's
coming from.
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/