[Gridflow-cvs] [svn] commit: r6862 - /trunk/src/classes1.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Nov 24 15:30:42 EST 2011


Author: mescalinum
Date: Thu Nov 24 15:30:42 2011
New Revision: 6862

Log:
newer versions of mingw don't have alloca, but there is a alloca macro defined in <malloc.h>

Modified:
    trunk/src/classes1.cxx

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Thu Nov 24 15:30:42 2011
@@ -32,7 +32,9 @@
 //#define GRID_INPUT(I,V) GRID_INLET(I) {in.buf=V=new Grid(in.dim,NumberTypeE_type_of(data));} GRID_FINISH
 
 #ifdef __MINGW32__
-void *alloca(size_t);
+//void *alloca(size_t);
+// there should be a HAVE_MALLOC_H macro...
+#include <malloc.h>
 #endif
 
 /* ---------------------------------------------------------------- */



More information about the Gridflow-cvs mailing list