mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
3cb6f522db
(cherry picked from commit 1dcd93c1de
)
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
|