3cb6f522db
(cherry picked from commit 1dcd93c1def1b26b0b4736a33fb8246b53602e73) Signed-off-by: Domen Kožar <domen@dev.si>
12 lines
522 B
Diff
12 lines
522 B
Diff
--- include/CL/cl.hpp
|
|
+++ include/CL/cl.hpp
|
|
@@ -201,7 +201,7 @@
|
|
#include <functional>
|
|
#define __CL_FUNCTION_TYPE typename std::function
|
|
#define CL_USE_CPP_FUNCTORS
|
|
-#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1 && !defined(STLPORT)) || defined(__APPLE__) || defined(__MACOSX)
|
|
+#elif (((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 5)) && !defined(STLPORT)) || defined(__APPLE__) || defined(__MACOSX)
|
|
#include <tr1/functional>
|
|
#define __CL_FUNCTION_TYPE typename std::tr1::function
|
|
#define CL_USE_CPP_FUNCTORS
|