pkgsrc-ng/lang/g95/patches/patch-gcc_config_freebsd-spec.h
2014-08-11 13:27:10 +02:00

24 lines
877 B
C

$NetBSD: patch-gcc_config_freebsd-spec.h,v 1.1 2013/09/23 17:56:32 asau Exp $
Do not create duplicate definitions.
From FreeBSD ports.
--- ../gcc-4.1.2/gcc/config/freebsd-spec.h.orig 2005-07-20 13:12:58.000000000 +0200
+++ ../gcc-4.1.2/gcc/config/freebsd-spec.h 2012-06-20 15:57:35.000000000 +0200
@@ -51,11 +51,13 @@
#define FBSD_TARGET_OS_CPP_BUILTINS() \
do \
{ \
- if (FBSD_MAJOR == 9) \
+ if (FBSD_MAJOR == 10) \
+ builtin_define ("__FreeBSD__=10"); \
+ else if (FBSD_MAJOR == 9) \
builtin_define ("__FreeBSD__=9"); \
else if (FBSD_MAJOR == 8) \
builtin_define ("__FreeBSD__=8"); \
- if (FBSD_MAJOR == 7) \
+ else if (FBSD_MAJOR == 7) \
builtin_define ("__FreeBSD__=7"); \
else if (FBSD_MAJOR == 6) \
builtin_define ("__FreeBSD__=6"); \