Fix compilation with clang

This commit is contained in:
Kovid Goyal 2017-11-08 15:43:59 +05:30
parent 7ed272e971
commit ceef207812
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ init_glad(GLADloadproc load, int debug) {
open('../kitty/gl-wrapper.c', 'w').write(c) open('../kitty/gl-wrapper.c', 'w').write(c)
raw = open('out/include/glad/glad.h').read() raw = open('out/include/glad/glad.h').read()
raw = raw.replace('<KHR/khrplatform.h>', '"khrplatform.h"') raw = raw.replace('<KHR/khrplatform.h>', '"khrplatform.h"')
raw += '\nint init_glad(GLADloadproc, int);' raw += '\nint init_glad(GLADloadproc, int);\n'
open('../kitty/gl-wrapper.h', 'w').write(raw) open('../kitty/gl-wrapper.h', 'w').write(raw)
shutil.copy2('out/include/KHR/khrplatform.h', '../kitty') shutil.copy2('out/include/KHR/khrplatform.h', '../kitty')

View File

@ -2874,4 +2874,4 @@ GLAPI PFNGLGETPOINTERVKHRPROC glad_debug_glGetPointervKHR;
#endif #endif
int init_glad(GLADloadproc, int); int init_glad(GLADloadproc, int);