diff system/System.cpp @ 255:7033e188b2b2 sv1-1.0pre4

* OS/X tweaks
author Chris Cannam
date Thu, 19 Apr 2007 15:19:51 +0000
parents bf753a9abf0c
children 15b47d30c085
line wrap: on
line diff
--- a/system/System.cpp	Mon Apr 16 12:20:27 2007 +0000
+++ b/system/System.cpp	Thu Apr 19 15:19:51 2007 +0000
@@ -32,6 +32,21 @@
 
 #include <iostream>
 
+#ifdef __APPLE__
+extern "C" {
+void *
+rpl_realloc (void *p, size_t n)
+{
+    p = realloc(p, n);
+    if (p == 0 && n == 0)
+    {
+    p = malloc(0);
+    }
+    return p;
+}
+}
+#endif
+
 #ifdef _WIN32
 
 extern "C" {