aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2001-05-22 21:33:36 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2001-05-22 21:33:36 +0000
commit73daf27e40586f828ce56bc2ffa61e626048f52f (patch)
tree646d829d00213efe386308e837da314377c3de0a
parent9a5b6eff3a93c073e3b2461778910d4970e20eb6 (diff)
downloadgcc-73daf27e40586f828ce56bc2ffa61e626048f52f.zip
gcc-73daf27e40586f828ce56bc2ffa61e626048f52f.tar.gz
gcc-73daf27e40586f828ce56bc2ffa61e626048f52f.tar.bz2
freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair instead of #elif (which is OK for this case but not in general).
* config/freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair instead of #elif (which is OK for this case but not in general). From-SVN: r42469
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/freebsd.h16
2 files changed, 17 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d9af402..ff5c32f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-22 Loren J. Rittle <ljrittle@acm.org>
+
+ * config/freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair
+ instead of #elif (which is OK for this case but not in general).
+
2001-05-22 Andrew MacLeod <amacleod@redhat.com>
* builtins.c (expand_builtin_longjmp): A longjmp can be a call too.
diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
index 8b526ca..88e0226 100644
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
@@ -53,16 +53,24 @@ Boston, MA 02111-1307, USA. */
#if FBSD_MAJOR == 6
#define FBSD_CPP_PREDEFINES \
"-D__FreeBSD__=6 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-#elif FBSD_MAJOR == 5
+#endif
+
+#if FBSD_MAJOR == 5
#define FBSD_CPP_PREDEFINES \
"-D__FreeBSD__=5 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-#elif FBSD_MAJOR == 4
+#endif
+
+#if FBSD_MAJOR == 4
#define FBSD_CPP_PREDEFINES \
"-D__FreeBSD__=4 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-#elif FBSD_MAJOR == 3
+#endif
+
+#if FBSD_MAJOR == 3
#define FBSD_CPP_PREDEFINES \
"-D__FreeBSD__=3 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-#else
+#endif
+
+#ifndef FBSD_CPP_PREDEFINES
#define FBSD_CPP_PREDEFINES \
"-D__FreeBSD__ -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
#endif