changeset 255:7033e188b2b2 sv1-1.0pre4

* OS/X tweaks
author Chris Cannam
date Thu, 19 Apr 2007 15:19:51 +0000
parents d2ffb480ff33
children 9c85517ff0f5
files system/System.cpp system/System.h
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
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" {
--- a/system/System.h	Mon Apr 16 12:20:27 2007 +0000
+++ b/system/System.h	Thu Apr 19 15:19:51 2007 +0000
@@ -76,7 +76,7 @@
 
 #ifdef __APPLE__
 
-#define PLUGIN_GLOB  "*.dylib"
+#define PLUGIN_GLOB  "*.dylib *.so"
 #define PATH_SEPARATOR ':'
 
 #define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA"