mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
glapi: Use GetProcAddress instead of dlsym on Windows.
This patch fixes this MinGW build error.
glapi_gentable.c: In function '_glapi_create_table_from_handle':
glapi_gentable.c:123:9: error: implicit declaration of function 'dlsym' [-Werror=implicit-function-declaration]
*procp = dlsym(handle, symboln);
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c25fe88ebf
commit
e945a19b35
1 changed files with 4 additions and 0 deletions
|
|
@ -134,7 +134,11 @@ body_template = """
|
|||
if(!disp->%(name)s) {
|
||||
void ** procp = (void **) &disp->%(name)s;
|
||||
snprintf(symboln, sizeof(symboln), "%%s%(entry_point)s", symbol_prefix);
|
||||
#ifdef _WIN32
|
||||
*procp = GetProcAddress(handle, symboln);
|
||||
#else
|
||||
*procp = dlsym(handle, symboln);
|
||||
#endif
|
||||
}
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue