removed clang-format and clang_complete files from the repo
[dosdemo] / src / bsptree.c
index f286ac7..d6417b9 100644 (file)
@@ -6,8 +6,12 @@
 #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"
@@ -248,7 +252,9 @@ static int choose_poly(struct bsppoly *polyarr, int num_polys)
                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;