summaryrefslogtreecommitdiff
path: root/src/clpp11.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-10-29 16:45:56 +0100
committerGitHub <noreply@github.com>2017-10-29 16:45:56 +0100
commit19c53f6dd06e1fc2b3f71ab738bd97af070fe627 (patch)
tree894631428f17b75dc144def614ffde885beeca21 /src/clpp11.hpp
parentfa6e5e67f585b77d34c3031c176de9a0f7904aa9 (diff)
parentf24d611e575656a8e472f46b9c5c54f3c9634378 (diff)
Merge pull request #208 from CNugteren/android_support
Added Android support
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r--src/clpp11.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clpp11.hpp b/src/clpp11.hpp
index 2335caef..82fc44fd 100644
--- a/src/clpp11.hpp
+++ b/src/clpp11.hpp
@@ -43,6 +43,7 @@
#include <memory> // std::shared_ptr
#include <numeric> // std::accumulate
#include <cstring> // std::strlen
+#include <cstdio> // fprintf, stderr
// OpenCL
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
@@ -52,6 +53,11 @@
#include <CL/opencl.h>
#endif
+// Android support (missing C++11 functions to_string, stod, and stoi)
+#ifdef __ANDROID__
+ #include "utilities/android.hpp"
+#endif
+
// Exception classes
#include "cxpp11_common.hpp"