ref_gl: de-duplicate GL function definitions

- Used APIENTRY_LINKAGE in ref_gl to remove duplicate definitions of GL
  functions among translation units
- Fixes building ref_gl with -fno-common (GCC 10)
This commit is contained in:
FOTMarut 2020-05-02 17:14:45 +02:00 committed by Alibek Omarov
parent 3c2840f7d1
commit 53768c84d6
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
// GL API function pointers, if any, reside in this translation unit
#define APIENTRY_LINKAGE
#include "gl_local.h"
#include "gl_export.h"

View File

@ -20,7 +20,7 @@ GNU General Public License for more details.
#endif
#ifndef APIENTRY_LINKAGE
#define APIENTRY_LINKAGE
#define APIENTRY_LINKAGE extern
#endif
#if defined XASH_NANOGL || defined XASH_WES || defined XASH_REGAL