mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00: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:
parent
7b3cf354b5
commit
c7f84f8fc4
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
|
||||
|
|
Loading…
Reference in a new issue