Skip to content
Snippets Groups Projects
Commit d8f195cd authored by slevy's avatar slevy
Browse files

Get alloca() right...

parent 541b023c
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,12 @@
* Illinois Open Source License; see the file LICENSE.partiview for details.
*/
#if unix /* but not WIN32 */
#ifdef __APPLE__
#define alloca(size) __builtin_alloca(size)
#endif
/* do other unices need alloca.h? */
# define alloca(size) __builtin_alloca(size)
#elif unix
# include <alloca.h>
#else
#include "winjunk.h"
# include "winjunk.h"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment