#if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__DJGPP__)
#include <malloc.h>
#else
+#ifdef WIN32
+#include <malloc.h>
+#else
#include <alloca.h>
#endif
+#endif
#include "bsptree.h"
#include "dynarr.h"
#include "inttypes.h"
struct cplane *plane = &polyarr[i].plane;
int num_splits = 0;
+#ifdef USE_OPENMP
#pragma omp parallel for reduction(+:num_splits)
+#endif
for(j=0; j<num_polys; j++) {
if(i == j) continue;