mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 21:38:29 -04:00
deps/glad: Fix build with GCC-10
GCC-10 defaults to '-fno-common' [1], which triggers issues with defining global variables multiple times. To fix the build, use 'extern' to turn the first definition of 'gladGetProcAddressPtr' into a declaration. 1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678 Closes https://github.com/obsproject/obs-studio/issues/2828
This commit is contained in:
2
deps/glad/src/glad_glx.c
vendored
2
deps/glad/src/glad_glx.c
vendored
@@ -35,7 +35,7 @@ static void* libGL;
|
||||
|
||||
#ifndef __APPLE__
|
||||
typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*);
|
||||
PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
|
||||
extern PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
|
||||
#endif
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user