diff --git a/test/dlwrap.h b/test/dlwrap.h index 39ec9ec9..8e94da95 100644 --- a/test/dlwrap.h +++ b/test/dlwrap.h @@ -56,7 +56,7 @@ dlwrap_real_dlsym(void *handle, const char *symbol); #define DEFER_TO_GL(library, func, name, args) \ ({ \ void *lib = dlwrap_real_dlopen(library, RTLD_LAZY | RTLD_LOCAL); \ - typeof(&func) real_func = dlwrap_real_dlsym(lib, name); \ + __typeof__(&func) real_func = dlwrap_real_dlsym(lib, name); \ /* gcc extension -- func's return value is the return value of \ * the statement. \ */ \