[WUPS] Make the include c++ compatible

This commit is contained in:
Maschell 2018-02-04 22:18:43 +01:00
parent 88f323de17
commit 83a9aa7b7b

View File

@ -67,7 +67,7 @@ typedef struct wups_loader_entry_t {
._function = { \ ._function = { \
.name = #original_func, \ .name = #original_func, \
.library = rpl_type, \ .library = rpl_type, \
.target = &(replace_func) \ .target = (const void*)&(replace_func) \
} \ } \
} \ } \
} }
@ -80,7 +80,7 @@ typedef struct wups_loader_entry_t {
._function = { \ ._function = { \
.name = #original_func, \ .name = #original_func, \
.library = rpl_type, \ .library = rpl_type, \
.target = &(replace_func) \ .target = (const void*)&(replace_func) \
} \ } \
} \ } \
} }
@ -92,7 +92,7 @@ typedef struct wups_loader_entry_t {
.data = { \ .data = { \
._export = { \ ._export = { \
.name = #symbol, \ .name = #symbol, \
.target = &(symbol) \ .target = (const void*)&(symbol) \
} \ } \
} \ } \
} }