mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-07 06:08:03 +02:00
Fixed #ifdef checks that were using i386 to use __i386__
""" It's simply obsolete, sloppy, compiler namespace pollution. The compiler is not allowed to predefine symbols that might conflict with ordinary identifiers. For backwards compatibility gcc currently predefines i386 when compiling for x86 32-bit (but not 64-bit), but that will go away. It is also not defined if you specify -ansi when invoking the compiler, because then it is seriously standards compliant. Other compilers shouldn't define it either. Correct code shouldn't rely on it being defined. However __i386__ is safe and proper. """
This commit is contained in:
parent
e49280c1c3
commit
e4ad7a8080
3 changed files with 3 additions and 3 deletions
2
Xos.h
2
Xos.h
|
|
@ -149,7 +149,7 @@ extern int sys_nerr;
|
|||
*/
|
||||
#if defined(X_NOT_POSIX)
|
||||
#include <fcntl.h>
|
||||
#if defined(USL) || defined(CRAY) || defined(MOTOROLA) || (defined(i386) && (defined(SYSV) || defined(SVR4))) || defined(__sxg__)
|
||||
#if defined(USL) || defined(CRAY) || defined(MOTOROLA) || (defined(__i386__) && (defined(SYSV) || defined(SVR4))) || defined(__sxg__)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
2
Xos_r.h
2
Xos_r.h
|
|
@ -237,7 +237,7 @@ extern void XtProcessUnlock(
|
|||
|
||||
#elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API)
|
||||
/* Use regular, unsafe API. */
|
||||
# if defined(X_NOT_POSIX) && !defined(i386) && !defined(SYSV)
|
||||
# if defined(X_NOT_POSIX) && !defined(__i386__) && !defined(SYSV)
|
||||
extern struct passwd *getpwuid(), *getpwnam();
|
||||
# endif
|
||||
typedef int _Xgetpwparams; /* dummy */
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef i386
|
||||
#ifdef __i386__
|
||||
#ifdef SYSV
|
||||
#if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
|
||||
!defined(__UNIXWARE__) && !defined(sun)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue