summaryrefslogtreecommitdiffstats
path: root/pocl
diff options
context:
space:
mode:
authorPekka Jääskeläinen <pekka.jaaskelainen@tut.fi>2013-03-21 14:30:41 +0200
committerPekka Jääskeläinen <pekka.jaaskelainen@tut.fi>2013-03-21 14:30:41 +0200
commit065aabae1d734e51bec86f8068998a9bd4806787 (patch)
treef6b36c579e66d5313cce4727ebaac40ee7d2a397 /pocl
parent63c2190c7ad8c911d3f797eba785e07e43ef0d12 (diff)
downloadvecmathlib-065aabae1d734e51bec86f8068998a9bd4806787.zip
vecmathlib-065aabae1d734e51bec86f8068998a9bd4806787.tar.gz
Fixes to make it build with Clang++ 3.2 using libstdc++ from Debian 6.0.
Diffstat (limited to 'pocl')
-rw-r--r--pocl/pocl-compat.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/pocl/pocl-compat.h b/pocl/pocl-compat.h
index 62480ed..32d414c 100644
--- a/pocl/pocl-compat.h
+++ b/pocl/pocl-compat.h
@@ -1,17 +1,30 @@
// -*-C++-*- Compatibility layer to help instantiante functions to
// create a library that can be called from elsewhere
+/* This workaround is needed for older libstdc++
+ versions such as the one in Debian 6.0 when compiled with clang++
+ http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013207.html
+ The version time stamp used below is the one in Debian 6.0.
+*/
+#include <cstring>
+
+#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20101114
+
+namespace std { class type_info; }
+
+#else
+
+#warning NOOOOOOOOOOO
+
+#endif
+
// Make things go fast (and debugging difficult...)
#define VML_NODEBUG
#include "../vecmathlib.h"
-#include <algorithm>
#include <cstdint>
-#include <cstring>
-
-
// Define vector types
OpenPOWER on IntegriCloud