diff options
Diffstat (limited to 'Source/Core/Common/Src/OpenCL.cpp')
| -rw-r--r-- | Source/Core/Common/Src/OpenCL.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/OpenCL.cpp b/Source/Core/Common/Src/OpenCL.cpp index 7ed4c39349..c3ff939ab0 100644 --- a/Source/Core/Common/Src/OpenCL.cpp +++ b/Source/Core/Common/Src/OpenCL.cpp @@ -130,6 +130,7 @@ void Destroy() { #endif
}
+#if defined(HAVE_OPENCL) && HAVE_OPENCL
void HandleCLError(cl_int error, char* str)
{
char* name;
@@ -191,5 +192,6 @@ void HandleCLError(cl_int error, char* str) PanicAlert("OpenCL error: %s %s (%d)", str, name, error);
}
+#endif
};
|
