Itseez/opencv — pull request #2145 by andreasBihlmaier (2014-01-13 15:14:34+00:00)
Title: Fix the following error for ocl::getOpenCLPlatforms() on Ubuntu 12.04 wi...

...th 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__" (cf. http://sourceforge.net/p/predef/wiki/OperatingSystems/)

Adjust all other occurrences of "defined(linux)" as well.