mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 14:39:11 +08:00
cfc3b9abbb
"#error" requires DOS line endings (or fails with fatal error C1004: unexpected end-of-file found) See: http://connect.microsoft.com/VisualStudio/feedback/details/794991/c-error-directive-and-unix-line-endings-leads-to-an-unexpected-end-of-file So replace them to #pragma message.
25 lines
363 B
C++
25 lines
363 B
C++
#if defined __APPLE__
|
|
#include <OpenCL/cl.h>
|
|
#else
|
|
#include <CL/cl.h>
|
|
#endif
|
|
|
|
#ifndef _MSC_VER
|
|
#ifdef CL_VERSION_1_2
|
|
#error OpenCL is valid
|
|
#else
|
|
#error OpenCL check failed
|
|
#endif
|
|
#else
|
|
#ifdef CL_VERSION_1_2
|
|
#pragma message ("OpenCL is valid")
|
|
#else
|
|
#pragma message ("OpenCL check failed")
|
|
#endif
|
|
#endif
|
|
|
|
int main(int /*argc*/, char** /*argv*/)
|
|
{
|
|
return 0;
|
|
}
|