fix compiling if opencl is not enabled at compile time

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4440 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-10-20 02:11:50 +00:00
parent 094c73a080
commit d40ce3f1e5
2 changed files with 5 additions and 1 deletions

View File

@ -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
};

View File

@ -60,8 +60,10 @@ void Destroy();
cl_program CompileProgram(const char *Kernel);
cl_kernel CompileKernel(cl_program program, const char *Function);
void HandleCLError(cl_int error, char* str = 0);
#if defined(HAVE_OPENCL) && HAVE_OPENCL
void HandleCLError(cl_int error, char* str = 0);
#endif
};
#endif