some changes for APPLE
authorBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Thu, 25 Sep 2003 12:23:59 +0000 (12:23 +0000)
committerBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Thu, 25 Sep 2003 12:23:59 +0000 (12:23 +0000)
[r1877]

ir/tv/fltcalc.c
ir/tv/strcalc.c
ir/tv/tv.c

index 77b675d..cca8bf8 100644 (file)
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
-#include <alloca.h>
+#ifdef linux
+# include <alloca.h>
+#else
+# ifdef __APPLE__
+# include <stdlib.h>
+# endif
+#endif
 
 typedef uint32_t UINT32;
 
index 8a225ac..5813e3b 100644 (file)
 #include "strcalc.h"
 
 #include <stdlib.h>
-#include <alloca.h>
+#ifdef linux
+# include <alloca.h>
+#else
+# ifdef __APPLE__
+#  include <stdlib.h>
+# endif
+#endif
 #include <assert.h>   /* assertions */
 #include <string.h>   /* memset/memcmp */
 #include <stdio.h>    /* output for error messages */
index 0d874dd..f51cd5c 100644 (file)
 #include <string.h>         /* nice things for strings */
 #include <strings.h>        /* strings.h also includes bsd only function strcasecmp */
 #include <stdlib.h>
-#include <alloca.h>
+#ifdef linux
+# include <alloca.h>
+#else
+# ifdef __APPLE__
+# include <stdlib.h>
+# endif
+#endif
 
 #include "tv_t.h"
 #include "set.h"            /* to store tarvals in */