Add platform compatibility defines for Sun Studio compilers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b63912ed4c
commit
48749cc21b
|
@ -55,6 +55,20 @@
|
||||||
# define DO_PROTOTYPES
|
# define DO_PROTOTYPES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Map Sun compiler platform defines to gcc-style used in the code */
|
||||||
|
#if defined(__amd64) && !defined(__amd64__)
|
||||||
|
# define __amd64__
|
||||||
|
#endif
|
||||||
|
#if defined(__i386) && !defined(__i386__)
|
||||||
|
# define __i386__
|
||||||
|
#endif
|
||||||
|
#if defined(__sparc) && !defined(__sparc__)
|
||||||
|
# define __sparc__
|
||||||
|
#endif
|
||||||
|
#if defined(__sparcv9) && !defined(__sparc64__)
|
||||||
|
# define __sparc64__
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _X_EXPORT
|
#ifndef _X_EXPORT
|
||||||
# include <X11/Xfuncproto.h>
|
# include <X11/Xfuncproto.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user