Ticket #508 (closed bug: fixed)

Opened 5 months ago

Last modified 3 months ago

MacOS: main-x11.c uses #define rather than typedef to define uint

Reported by: roustk@alumni.caltech.edu Assigned to:
Milestone: 3.1.0 Version:
Keywords: Cc:

Description

Line 97 of 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

Attachments

Change History

04/27/08 22:00:07 changed by takkaria

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r839, thanks.


Add/Change #508 (MacOS: main-x11.c uses #define rather than typedef to define uint)




Action