Skip to content

Commit

Permalink
Merge pull request #2337 from aarongreig/aaron/fixCoreFuncMacroWindows
Browse files Browse the repository at this point in the history
Fix the CL_CORE_FUNCTION macro on windows.
  • Loading branch information
callumfare authored Nov 19, 2024
2 parents 0ea47d7 + 22ca5ee commit 1675f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/opencl/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_() {
auto handle = LoadLibraryA("OpenCL.dll");

#define CL_CORE_FUNCTION(FUNC) \
FUNC = reinterpret_cast<decltype(::FUNC) *>(GetProcAddress(handle, "FUNC"));
FUNC = reinterpret_cast<decltype(::FUNC) *>(GetProcAddress(handle, #FUNC));
#include "core_functions.def"
#undef CL_CORE_FUNCTION

Expand Down

0 comments on commit 1675f05

Please sign in to comment.