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:
Carsten Haitzler 2018-11-08 14:39:11 +00:00
parent 906183f2cd
commit 143bef348f
1 changed files with 4 additions and 4 deletions

View File

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