Lines 1-21
Link Here
|
1 |
--- opennurbs_memory.c.orig 2012-10-25 18:07:39.000000000 +0200 |
|
|
2 |
+++ opennurbs_memory.c 2012-10-25 18:08:08.000000000 +0200 |
3 |
@@ -14,6 +14,8 @@ |
4 |
//////////////////////////////////////////////////////////////// |
5 |
*/ |
6 |
|
7 |
+#include <malloc_np.h> |
8 |
+ |
9 |
#include "opennurbs_system.h" |
10 |
#include "opennurbs_defines.h" |
11 |
#include "opennurbs_memory.h" |
12 |
@@ -113,8 +115,7 @@ |
13 |
// platform, then report it to the support |
14 |
// contact on http://opennurbs.org and |
15 |
// the code will be added in the next release. |
16 |
- ON_ERROR("onmsize not implemented on this compiler or platform.") |
17 |
- sz = 0; |
18 |
+ sz = malloc_usable_size( (void*)memblock ); |
19 |
#endif |
20 |
} |
21 |
|