mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Use HAVE_DYLIB for loading dynamic libraries instead of HAVE_DYNAMIC
This commit is contained in:
parent
e71a5ff921
commit
3b38ea195f
@ -89,7 +89,7 @@ static bool angle_try_initialize(egl_ctx_data_t* egl,
|
||||
EGLint* major, EGLint* minor)
|
||||
{
|
||||
EGLDisplay dpy = EGL_NO_DISPLAY;
|
||||
#if defined(HAVE_DYNAMIC) && defined(HAVE_DYNAMIC_EGL)
|
||||
#if defined(HAVE_DYLIB) && defined(HAVE_DYNAMIC_EGL)
|
||||
if (!egl_init_dll())
|
||||
return false;
|
||||
#endif
|
||||
|
@ -40,7 +40,7 @@ bool g_egl_inited = false;
|
||||
unsigned g_egl_major = 0;
|
||||
unsigned g_egl_minor = 0;
|
||||
|
||||
#if defined(HAVE_DYNAMIC) && defined(HAVE_DYNAMIC_EGL)
|
||||
#if defined(HAVE_DYLIB) && defined(HAVE_DYNAMIC_EGL)
|
||||
#include <dynamic/dylib.h>
|
||||
|
||||
typedef EGLBoolean(* PFN_EGL_QUERY_SURFACE)(
|
||||
@ -124,7 +124,7 @@ static PFN_EGL_SWAP_INTERVAL _egl_swap_interval;
|
||||
|
||||
bool egl_init_dll(void)
|
||||
{
|
||||
#if defined(HAVE_DYNAMIC) && defined(HAVE_DYNAMIC_EGL)
|
||||
#if defined(HAVE_DYLIB) && defined(HAVE_DYNAMIC_EGL)
|
||||
static dylib_t egl_dll;
|
||||
|
||||
if (!egl_dll)
|
||||
|
@ -467,11 +467,9 @@ bool gfx_ctx_wl_init_common(
|
||||
if (!wl)
|
||||
return false;
|
||||
|
||||
|
||||
#ifdef HAVE_LIBDECOR_H
|
||||
#ifdef HAVE_DYNAMIC
|
||||
wl->libdecor = dylib_load("libdecor-0.so");
|
||||
if (wl->libdecor)
|
||||
#ifdef HAVE_DYLIB
|
||||
if ((wl->libdecor = dylib_load("libdecor-0.so")))
|
||||
{
|
||||
#define RA_WAYLAND_SYM(rc,fn,params) wl->fn = (rc (*) params)dylib_proc(wl->libdecor, #fn);
|
||||
#include "wayland/libdecor_sym.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user