libgltf: turn off openMP usage without any detection code.

Change-Id: Ic823109b812a3d99d8462cf67cd9aa87094bba06
This commit is contained in:
Michael Meeks 2014-05-24 20:33:19 +01:00
parent d582da903e
commit 42f2f47330
2 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libgltf,1))
$(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
external/libgltf/patches/include_path_glew.patch \
external/libgltf/patches/include_path_freetype.patch \
external/libgltf/patches/openmp-disable.patch \
))
# vim: set noet sw=4 ts=4:

View File

@ -0,0 +1,12 @@
--- libgltf/src/RenderScene.h
+++ libgltf/src/RenderScene.h
@@ -16,7 +16,8 @@
#include "FPSCounter.h"
#include "Timer.h"
-#define OPENMPENABLE 1
+// Needs a configure / etc. detection to see if omp.h is on the system ...
+#define OPENMPENABLE 0
#if OPENMPENABLE
#include <omp.h>
#define WAVESIZE 4