X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fbsptree.c;h=f286ac7fbd39adf1ff214f1747c4905835bde658;hb=HEAD;hp=7783e253ed34b22f34c98f404b1cc150886bd318;hpb=00a81988c5c6c91997f2f9346ac94858622490bd;p=dosdemo diff --git a/src/bsptree.c b/src/bsptree.c index 7783e25..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 %d splits\n", num_polys, best_splits); + /*printf("choose_poly(..., %d) -> %d splits\n", num_polys, best_splits);*/ return best; }