summaryrefslogtreecommitdiff
path: root/src/s
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-07-17 14:09:13 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-07-17 14:09:13 +0000
commit35ad054578a15b8f98b7d7e93f03d2f9cd112c3e (patch)
tree9d5bf976f170893bab62f80c30ba71d17f95f147 /src/s
parent2749d28e1bd80262749657ee4a60e5b1f75b6cb8 (diff)
downloademacs-35ad054578a15b8f98b7d7e93f03d2f9cd112c3e.tar.gz
* s/sol2.h:
* s/sol2-4.h: Reorganize conditionals.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/sol2-4.h11
-rw-r--r--src/s/sol2.h7
2 files changed, 6 insertions, 12 deletions
diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h
index 3cf2786c500..df8552e9562 100644
--- a/src/s/sol2-4.h
+++ b/src/s/sol2-4.h
@@ -2,13 +2,6 @@
#include "sol2-3.h"
-/* Get rid of -traditional and let const really do its thing. */
-
-#ifdef __GNUC__
-#undef C_SWITCH_SYSTEM
-#undef const
-#endif /* __GNUC__ */
-
#undef LD_SWITCH_SYSTEM
/* `#ifdef USE_MOTIF' won't work here, since USE_MOTIF isn't defined yet.
@@ -25,6 +18,10 @@
#define LD_SWITCH_SYSTEM_TEMACS -L/usr/ccs/lib \
`./prefix-args -Xlinker LD_SWITCH_X_SITE_AUX` \
`NOT_USING_MOTIF || echo ' -R/usr/dt/lib -L/usr/dt/lib'`
+
+/* Get rid of -traditional and let const really do its thing. */
+#undef C_SWITCH_SYSTEM
+#undef const
#endif /* GCC */
/* Gregory Neil Shapiro <gshapiro@hhmi.org> reports the Motif header files
diff --git a/src/s/sol2.h b/src/s/sol2.h
index aa30be3675c..1938fb6d865 100644
--- a/src/s/sol2.h
+++ b/src/s/sol2.h
@@ -31,6 +31,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
says where to find X windows at run time. */
#ifndef __GNUC__
#define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX
+/* eggert thinks all versions of SunPro C allowed this. */
+#define C_DEBUG_SWITCH -g -O
#else /* GCC */
/* We use ./prefix-args because we don't know whether LD_SWITCH_X_SITE_AUX
has anything in it. It can be empty.
@@ -48,11 +50,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define HAVE_LIBKSTAT
#endif
-/* eggert thinks all versions of SunPro C allowed this. */
-#ifndef __GNUC__
-#define C_DEBUG_SWITCH -g -O
-#endif
-
/* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
XIM support. */