8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
11 lines
522 B
Diff
11 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
|