Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GET_FUNCTION_PTR warnings on windows #255

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/inc/ze_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inline void getLastErrorString(std::string &errorValue) {
# define GET_LIBRARY_ERROR(ERROR_STRING) getLastErrorString(ERROR_STRING)
# define FREE_DRIVER_LIBRARY(LIB) FreeLibrary(LIB)
# define FREE_DRIVER_LIBRARY_FAILURE_CHECK(RESULT) (RESULT) == 0 ? true : false
# define GET_FUNCTION_PTR(LIB, FUNC_NAME) GetProcAddress(LIB, FUNC_NAME)
# define GET_FUNCTION_PTR(LIB, FUNC_NAME) reinterpret_cast<void *>(GetProcAddress(LIB, FUNC_NAME))
# define string_copy_s strncpy_s
#else
# include <link.h>
Expand Down
Loading