Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
254:d2ffb480ff33 | 255:7033e188b2b2 |
---|---|
29 #include <sys/param.h> | 29 #include <sys/param.h> |
30 #include <sys/sysctl.h> | 30 #include <sys/sysctl.h> |
31 #endif | 31 #endif |
32 | 32 |
33 #include <iostream> | 33 #include <iostream> |
34 | |
35 #ifdef __APPLE__ | |
36 extern "C" { | |
37 void * | |
38 rpl_realloc (void *p, size_t n) | |
39 { | |
40 p = realloc(p, n); | |
41 if (p == 0 && n == 0) | |
42 { | |
43 p = malloc(0); | |
44 } | |
45 return p; | |
46 } | |
47 } | |
48 #endif | |
34 | 49 |
35 #ifdef _WIN32 | 50 #ifdef _WIN32 |
36 | 51 |
37 extern "C" { | 52 extern "C" { |
38 | 53 |