compilable on mac
authorClaus Gittinger <cg@exept.de>
Tue, 22 Mar 2016 11:12:50 +0100
changeset 19392 4dca8e4bec84
parent 19391 d183062072aa
child 19393 4edd321dabbd
compilable on mac
ExternalBytes.st
--- a/ExternalBytes.st	Mon Mar 21 16:31:14 2016 +0100
+++ b/ExternalBytes.st	Tue Mar 22 11:12:50 2016 +0100
@@ -26,7 +26,14 @@
 %{
     #include <stdlib.h>
     #include <stdio.h>
-    #include <malloc.h>
+// cg: not needed
+#if 0
+# ifdef __osx__
+#  include <sys/malloc.h>
+# else
+#  include <malloc.h>
+# endif
+#endif
 
     extern char *__stx_malloc(size_t);
     extern char *__stx_calloc(size_t, size_t);