summaryrefslogtreecommitdiff
path: root/gcc/config/freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/freebsd.h')
-rw-r--r--gcc/config/freebsd.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
index 8b526ca1cf2..88e0226ec71 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