mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
More nits.
This commit is contained in:
parent
0f010cf3d2
commit
f85ff7124b
@ -259,7 +259,7 @@ function_t dylib_proc(dylib_t lib, const char *proc)
|
||||
}
|
||||
}
|
||||
|
||||
// Dirty hack to workaround the non-legality of void *-> fn-pointer casts.
|
||||
// Dirty hack to workaround the non-legality of (void*) -> fn-pointer casts.
|
||||
function_t sym;
|
||||
memcpy(&sym, &ptr_sym, sizeof(void*));
|
||||
#endif
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define SDL_MODERN 0
|
||||
#endif
|
||||
|
||||
// Not legal to cast void *to fn-pointer. Need workaround to be compliant.
|
||||
// Not legal to cast (void*) to fn-pointer. Need workaround to be compliant.
|
||||
#define SDL_SYM_WRAP(sym, symbol) { \
|
||||
assert(sizeof(void*) == sizeof(void (*)(void))); \
|
||||
void *sym__ = SDL_GL_GetProcAddress(symbol); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user