Compilation failed on current HEAD
Alexander Gottwald
alexander.gottwald at s1999.tu-chemnitz.de
Tue Jul 12 22:50:07 PDT 2005
On Tue, 12 Jul 2005, Torrey Lyons wrote:
> There has a proliferation of usage of the SysV "uint" type. This also causes
> build breakage on Darwin in Xserver/render/picture.c. There is a workaround
> in picture.c specifically for WIN32:
>
> #ifdef WIN32
> typedef unsigned int uint;
> #endif
>
> The right way to do this is to include Xlib.h, Xos.h, or Xarch.h, which will
> include <sys/types.h> as appropriate to define uint. This should fix this
> issue for all platforms. Any preferences for which is best here?
for CYGWIN: /usr/include/sys/types.h
# ifndef _POSIX_SOURCE
...
typedef unsigned short ushort; /* System V compatibility */
typedef unsigned int uint; /* System V compatibility */
# endif /*!_POSIX_SOURCE */
WIN32 does not define uint at all
bye
ago
--
Alexander.Gottwald at s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723
More information about the xorg
mailing list