summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 41e950d17..e72becfbd 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