nixpkgs-suyu/pkgs/development/misc/amdapp-sdk/gcc-5.patch
Reno Reckling 3cb6f522db amdapp-sdk: fix build for gcc 5
(cherry picked from commit 1dcd93c1def1b26b0b4736a33fb8246b53602e73)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-20 14:17:36 +02:00

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