aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2008-07-17 14:09:13 +0000
committerDan Nicolaescu <[email protected]>2008-07-17 14:09:13 +0000
commit35ad054578a15b8f98b7d7e93f03d2f9cd112c3e (patch)
tree9d5bf976f170893bab62f80c30ba71d17f95f147
parent2749d28e1bd80262749657ee4a60e5b1f75b6cb8 (diff)
* s/sol2.h:
* s/sol2-4.h: Reorganize conditionals.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/s/sol2-4.h11
-rw-r--r--src/s/sol2.h7
3 files changed, 9 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a82e5c6296..e540db8d60 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2008-07-17 Dan Nicolaescu <[email protected]>
+ * s/sol2.h:
+ * s/sol2-4.h: Reorganize conditionals.
+
* ecrt0.c: Remove code depending on m68000, not used anymore.
* fns.c (hash_remove): Make static.
diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h
index 3cf2786c50..df8552e956 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 <[email protected]> reports the Motif header files
diff --git a/src/s/sol2.h b/src/s/sol2.h
index aa30be3675..1938fb6d86 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
-
/* [email protected] says Solaris has a bug related to X11R6-style
XIM support. */