mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
[sdl] Turn tentative definition into actual definition.
There is no need for a tentative definition in this case. By providing an explicit initializer, the resulting definition has the same effect as before, but is no longer tentative. This avoids easy errors resulting from multiple tentative definitions in different translation units. (Previous compilers permitted those common errors, but GCC 10 rejects them by default.)
This commit is contained in:
parent
e7a7a2b6b6
commit
d1b7ab6b22
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ void (APIENTRYP qglMultiTexCoord2fARB) (GLenum target, GLfloat s, GLfloat t);
|
||||||
void (APIENTRYP qglLockArraysEXT) (GLint first, GLsizei count);
|
void (APIENTRYP qglLockArraysEXT) (GLint first, GLsizei count);
|
||||||
void (APIENTRYP qglUnlockArraysEXT) (void);
|
void (APIENTRYP qglUnlockArraysEXT) (void);
|
||||||
|
|
||||||
#define GLE(ret, name, ...) name##proc * qgl##name;
|
#define GLE(ret, name, ...) name##proc * qgl##name = NULL;
|
||||||
QGL_1_1_PROCS;
|
QGL_1_1_PROCS;
|
||||||
QGL_1_1_FIXED_FUNCTION_PROCS;
|
QGL_1_1_FIXED_FUNCTION_PROCS;
|
||||||
QGL_DESKTOP_1_1_PROCS;
|
QGL_DESKTOP_1_1_PROCS;
|
||||||
|
|
Loading…
Reference in a new issue