Skip to content

Commit b8648ee

Browse files
authored
Merge pull request #42 from uyjulian/macos_build_fix
Add patch to fix gcc 3.2.3 compilation on macOS
2 parents b5cd7a7 + e36b66d commit b8648ee

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

patches/gcc-3.2.3-PS2.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4541,6 +4541,27 @@ diff -rupNb gcc-3.2.3/gcc/config.gcc gcc-3.2.3-new/gcc/config.gcc
45414541
fi
45424542
fi
45434543
+
4544+
diff -rupNb gcc-3.2.3/gcc/cp/cfns.h gcc-3.2.3-new/gcc/cp/cfns.h
4545+
--- gcc-3.2.3/gcc/cp/cfns.h 2000-04-04 13:46:23.000000000 -0700
4546+
+++ gcc-3.2.3-new/gcc/cp/cfns.h 2018-08-02 17:24:35.000000000 -0700
4547+
@@ -5,7 +5,7 @@ __inline
4548+
#endif
4549+
static unsigned int hash PARAMS ((const char *, unsigned int));
4550+
#ifdef __GNUC__
4551+
-__inline
4552+
+static
4553+
#endif
4554+
const char * libc_name_p PARAMS ((const char *, unsigned int));
4555+
/* maximum key range = 1020, duplicates = 1 */
4556+
@@ -70,7 +70,7 @@ hash (str, len)
4557+
}
4558+
4559+
#ifdef __GNUC__
4560+
-__inline
4561+
+static
4562+
#endif
4563+
const char *
4564+
libc_name_p (str, len)
45444565
diff -rupNb gcc-3.2.3/gcc/cp/decl.c gcc-3.2.3-new/gcc/cp/decl.c
45454566
--- gcc-3.2.3/gcc/cp/decl.c 2003-03-18 07:16:55.000000000 +0800
45464567
+++ gcc-3.2.3-new/gcc/cp/decl.c 2016-07-02 09:25:57.525368595 +0800

0 commit comments

Comments
 (0)