From 03ec318d004abca97580b0296e252f9ce6df1a1e Mon Sep 17 00:00:00 2001 From: jackun Date: Fri, 19 Jun 2020 23:44:57 +0300 Subject: [PATCH] Make find_*_ptr function pointers static --- src/hook_dlsym.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hook_dlsym.cpp b/src/hook_dlsym.cpp index 97649e4e..45eaab43 100644 --- a/src/hook_dlsym.cpp +++ b/src/hook_dlsym.cpp @@ -5,8 +5,8 @@ EXPORT_C_(void*) dlsym(void * handle, const char * name) { - void *(*find_glx_ptr)(const char *name) = nullptr; - void *(*find_egl_ptr)(const char *name) = nullptr; + static void *(*find_glx_ptr)(const char *name) = nullptr; + static void *(*find_egl_ptr)(const char *name) = nullptr; if (!find_glx_ptr) find_glx_ptr = reinterpret_cast (real_dlsym(RTLD_NEXT, "mangohud_find_glx_ptr"));