diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-07 15:53:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-07 15:53:32 -0700 |
commit | d5ae42ec3849672438823b08ad06a69289ae99c5 (patch) | |
tree | 5a8c07fcfed0f4063133eccef45327880562c016 | |
parent | 9719534fa3a184b848ef9e9c3a755703b8708fd2 (diff) |
Map Solaris/Sun compiler #defines to gcc equivalents
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r-- | shared/vmmouse_proto.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/vmmouse_proto.h b/shared/vmmouse_proto.h index a2eb1e4..9d7cb22 100644 --- a/shared/vmmouse_proto.h +++ b/shared/vmmouse_proto.h @@ -49,6 +49,15 @@ #include "xf86_libc.h" #endif +/* Map Solaris/Sun compiler #defines to gcc equivalents */ +#if !defined __i386__ && defined __i386 +# define __i386__ +#endif + +#if !defined __x86_64__ && defined __amd64 +# define __x86_64__ +#endif + #if !defined __i386__ && !defined __x86_64__ #error The vmmouse protocol is only supported on x86 architectures. #endif |