Remove workaround for #654 as it has been upstreamed

This commit is contained in:
Kovid Goyal 2018-07-19 05:11:03 +05:30
parent 5ae2406a03
commit 039f2b49e8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,8 +43,6 @@ def export():
switch = ['glad_debug_{0} = glad_{0}'.format(f) for f in functions] switch = ['glad_debug_{0} = glad_{0}'.format(f) for f in functions]
c = c.replace('<glad/glad.h>', '"gl-wrapper.h"', 1) c = c.replace('<glad/glad.h>', '"gl-wrapper.h"', 1)
c = '#pragma GCC diagnostic ignored "-Wpedantic"\n' + c c = '#pragma GCC diagnostic ignored "-Wpedantic"\n' + c
# See https://github.com/kovidgoyal/kitty/issues/654
c = c.replace('strncpy(local_str, gl_str_tmp, len+1)', 'memcpy(local_str, gl_str_tmp, len+1)', 1)
c += ''' c += '''
int int
init_glad(GLADloadproc load, int debug) { init_glad(GLADloadproc load, int debug) {