summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorI-Jui (Ray) Sung <ray@multicorewareinc.com>2013-11-27 18:36:47 -0600
committerI-Jui (Ray) Sung <ray@multicorewareinc.com>2013-11-27 18:37:36 -0600
commitd82c9a499e2b6e4e57a7907ae2679a1fe7720458 (patch)
tree5a4dd4c87c6f53640cbd08a78140a858f2b8e664
parentf74f9e85fca5a84b62a442d04d47aafa4c3a34ec (diff)
GPU Calc: fix compilation failure on Windows due to missing NAN macro
Change-Id: I0d53dcf147a06f831120c5489b2975e42ea6120b
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 7d62ffe1bdd0..8ccb9677025b 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -31,6 +31,14 @@
#define REDUCE_THRESHOLD 4 // set to 4 for correctness testing. priority 1
#define UNROLLING_FACTOR 16 // set to 4 for correctness testing (if no reduce)
#include "formulagroupcl_public.hxx"
+#ifdef WIN32
+#ifndef NAN
+namespace {
+static const unsigned long __nan[2] = {0xffffffff, 0x7fffffff};
+}
+#define NAN (*(const float *) __nan)
+#endif
+#endif
#include <list>
#include <map>