Skip to content

Commit 1675f05

Browse files
authored
Merge pull request #2337 from aarongreig/aaron/fixCoreFuncMacroWindows
Fix the CL_CORE_FUNCTION macro on windows.
2 parents 0ea47d7 + 22ca5ee commit 1675f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/opencl/adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_() {
2424
auto handle = LoadLibraryA("OpenCL.dll");
2525

2626
#define CL_CORE_FUNCTION(FUNC) \
27-
FUNC = reinterpret_cast<decltype(::FUNC) *>(GetProcAddress(handle, "FUNC"));
27+
FUNC = reinterpret_cast<decltype(::FUNC) *>(GetProcAddress(handle, #FUNC));
2828
#include "core_functions.def"
2929
#undef CL_CORE_FUNCTION
3030

0 commit comments

Comments
 (0)