Opened 12 years ago
Closed 12 years ago
#508 closed bug (fixed (in master))
MacOS: main-x11.c uses #define rather than typedef to define uint
Reported by: | roustk@… | Owned by: | |
---|---|---|---|
Milestone: | 3.1.0 | Keywords: | |
Cc: |
Description
Line 97 of [533b839] (SVN r755) main-x11.c:
#define uint unsigned int
On MacOS 10.5.2 (at least) this conflicts with a definition in <sys/types.h>, line 92:
typedef unsigned int uint; /* Sys V compatibility */
This generates the following error:
In file included from /usr/X11/include/X11/Xlib.h:52, from main-x11.c:105: /usr/include/sys/types.h:92: error: duplicate 'unsigned' /usr/include/sys/types.h:92: error: two or more data types in declaration specifiers
Fix (at least for me): replace line 97 of main-x11.c with:
typedef unsigned int uint;
This should be tested on other systems, of course.
Kevin
Change History (1)
comment:1 Changed 12 years ago by takkaria
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed in [5402c0d] (SVN r839), thanks.