diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-12-17 18:24:38 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-12-18 10:31:53 -0800 |
commit | 48749cc21b074ee8e68c3854bd3977ec7c408225 (patch) | |
tree | f72693f8c2d24f1a22ed1fd757632e62498b8bda | |
parent | b63912ed4c69fedd1bea92274d6cae0429a79677 (diff) |
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>
-rw-r--r-- | hw/xfree86/common/compiler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h index dc5f157b0..ded71ee22 100644 --- a/hw/xfree86/common/compiler.h +++ b/hw/xfree86/common/compiler.h @@ -55,6 +55,20 @@ # define DO_PROTOTYPES #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 # include <X11/Xfuncproto.h> #endif |