summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-01-19 22:28:20 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-01-19 22:28:20 +0000
commita2abf77f552d3930d07721e2aa388bb8d87a621a (patch)
tree7753da0ed4f8deaf8fda569d2e12b58fdb12a544
parent33dd47009fe09ce9e5628df51914821d416be78d (diff)
downloadxorg-util-makedepend-a2abf77f552d3930d07721e2aa388bb8d87a621a.tar.gz
Pass through additional #defines for Solaris. (Sun bug id #5097074 - Alan
Coopersmith)
-rw-r--r--imakemdep.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/imakemdep.h b/imakemdep.h
index 52d67ab..c5b1754 100644
--- a/imakemdep.h
+++ b/imakemdep.h
@@ -1,4 +1,5 @@
/* $Xorg: imakemdep.h,v 1.6 2001/02/09 02:03:16 xorgcvs Exp $ */
+/* $XdotOrg: $ */
/*
Copyright (c) 1993, 1994, 1998 The Open Group
@@ -602,6 +603,12 @@ char *cpp_argv[ARGUMENTS] = {
#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__)
"-DSVR4",
#endif
+# ifdef __sparcv9
+ "-D__sparcv9",
+# endif
+# ifdef __amd64
+ "-D__amd64",
+# endif
#endif
#ifdef WIN32
"-DWIN32",
@@ -1297,6 +1304,13 @@ struct symtab predefs[] = {
{"__amd64__", "1"},
{"__x86_64__", "1"},
# endif
+# if defined (__amd64) || defined(__x86_64)
+ {"__amd64", "1"},
+ {"__x86_64", "1"},
+# endif
+# ifdef __x86
+ {"__x86", "1"},
+# endif
# ifdef __i386
{"__i386", "1"},
# endif