diff --git a/ref_gl/gl_context.c b/ref_gl/gl_context.c index 7581d648..19cec68e 100644 --- a/ref_gl/gl_context.c +++ b/ref_gl/gl_context.c @@ -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" diff --git a/ref_gl/gl_export.h b/ref_gl/gl_export.h index 8aee249f..20817fa3 100644 --- a/ref_gl/gl_export.h +++ b/ref_gl/gl_export.h @@ -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