aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--string.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c9788d3df..7bc57d93f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 13 15:51:22 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * string.c: Apply a temporary fix to fix build on OS X. A real
+ fix will follow later.
+
Wed Aug 13 15:25:09 2008 Akinori MUSHA <knu@iDaemons.org>
* enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to
diff --git a/string.c b/string.c
index 41e950d17d..e72becfbdc 100644
--- a/string.c
+++ b/string.c
@@ -43,7 +43,7 @@
VALUE rb_cString;
VALUE rb_cSymbol;
-#ifdef __GNUC__
+#if defined(__GNUC__) && !(defined(__APPLE__) && (defined(__MACH__) || defined(__DARWIN__)))
#define alias_func(old_prot, new_name, args) \
VALUE old_prot __attribute__((alias(#new_name)));
#else