summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-07 15:53:32 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-07 15:53:32 -0700
commitd5ae42ec3849672438823b08ad06a69289ae99c5 (patch)
tree5a8c07fcfed0f4063133eccef45327880562c016
parent9719534fa3a184b848ef9e9c3a755703b8708fd2 (diff)
Map Solaris/Sun compiler #defines to gcc equivalents
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--shared/vmmouse_proto.h9
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