Fix the following error for ocl::getOpenCLPlatforms() on Ubuntu 12.04 with gcc 4.8
authorahb <andreas.bihlmaier@gmx.de>
Mon, 13 Jan 2014 15:09:42 +0000 (16:09 +0100)
committerahb <andreas.bihlmaier@gmx.de>
Mon, 13 Jan 2014 15:09:42 +0000 (16:09 +0100)
commit49dfa5a17f00a82f0c160e20395c193b992d286e
tree9dd75fd59b0ab6d8583d2ebfb8c250bb39f8a746
parent9628abc7867c507201da2c5030195264de81aa27
Fix the following error for ocl::getOpenCLPlatforms() on Ubuntu 12.04 with gcc 4.8
OpenCV Error: Unknown error code -6 (OpenCL function is not available: [clGetPlatformIDs]) in opencl_check_fn, file /home/ahb/software/opencv/modules/ocl/src/cl_runtime/cl_runtime.cpp, line 83

The issue results from modules/ocl/src/cl_runtime/cl_runtime.cpp checking for
"linux" instead of "__linux__" (cp.  http://sourceforge.net/p/predef/wiki/OperatingSystems/)

Adjust all other occurrences of "defined(linux)" as well.
3rdparty/include/opencl/1.2/CL/cl.hpp
modules/ocl/src/cl_runtime/cl_runtime.cpp
modules/ocl/src/cl_runtime/clamdblas_runtime.cpp
modules/ocl/src/cl_runtime/clamdfft_runtime.cpp
modules/ocl/src/cl_runtime/generator/template/clamdblas_runtime.cpp.in
modules/ocl/src/cl_runtime/generator/template/clamdfft_runtime.cpp.in