mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Fix a warning with dlsym().
This commit is contained in:
@@ -4261,7 +4261,14 @@ ma_proc ma_dlsym(ma_handle handle, const char* symbol)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return (ma_proc)GetProcAddress((HMODULE)handle, symbol);
|
return (ma_proc)GetProcAddress((HMODULE)handle, symbol);
|
||||||
#else
|
#else
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
#endif
|
||||||
return (ma_proc)dlsym((void*)handle, symbol);
|
return (ma_proc)dlsym((void*)handle, symbol);
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user