More nits.

This commit is contained in:
Themaister 2011-11-02 19:34:08 +01:00
parent 0f010cf3d2
commit f85ff7124b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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); \