X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fbsptree.c;h=d6417b9db43a427673457221a1ffd57c788e2e3b;hb=HEAD;hp=f286ac7fbd39adf1ff214f1747c4905835bde658;hpb=637ca39c29b03bd3a2beb99521753e83c043283f;p=dosdemo diff --git a/src/bsptree.c b/src/bsptree.c index f286ac7..d6417b9 100644 --- a/src/bsptree.c +++ b/src/bsptree.c @@ -6,8 +6,12 @@ #if defined(__WATCOMC__) || defined(_MSC_VER) || defined(__DJGPP__) #include #else +#ifdef WIN32 +#include +#else #include #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