forked from enlightenment/efl
evas gl extn sym finding - warn - use void catss for no more warns
so gcc now is being very picky about types. since we'r ereallyjast throwing void *'s around for pointers to funcs and looking them up by hand - use void *'s to avoid warnings.
This commit is contained in:
parent
906183f2cd
commit
143bef348f
|
@ -4745,7 +4745,7 @@ glue_sym_init(void)
|
|||
//------------------------------------------------//
|
||||
// Use eglGetProcAddress
|
||||
#define FINDSYM(dst, sym, typ) \
|
||||
if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
|
||||
if (!dst) dst = dlsym(gl_lib_handle, sym); \
|
||||
if (!dst) \
|
||||
{ \
|
||||
ERR("Symbol not found: %s", sym); \
|
||||
|
@ -4783,12 +4783,12 @@ gl_sym_init(void)
|
|||
|
||||
//------------------------------------------------//
|
||||
#define FINDSYM(dst, sym, typ) do { \
|
||||
if (!dst) dst = (typeof(dst))dlsym(gl_lib_handle, sym); \
|
||||
if (!dst && _sym_OSMesaGetProcAddress) dst = (typeof(dst))_sym_OSMesaGetProcAddress(sym); \
|
||||
if (!dst) dst = dlsym(gl_lib_handle, sym); \
|
||||
if (!dst && _sym_OSMesaGetProcAddress) dst = (void *)_sym_OSMesaGetProcAddress(sym); \
|
||||
if (!dst) DBG("Symbol not found: %s", sym); \
|
||||
} while (0)
|
||||
#define FALLBAK(dst, typ) do { \
|
||||
if (!dst) { dst = (typeof(dst))sym_missing; ok = EINA_FALSE; } \
|
||||
if (!dst) { dst = (void *)sym_missing; ok = EINA_FALSE; } \
|
||||
} while (0)
|
||||
|
||||
//------------------------------------------------------//
|
||||
|
|
Loading…
Reference in New Issue