]> git.tdb.fi Git - gldbg.git/blobdiff - genwrap.py
Use APIENTRY since that seems to work with both Mesa and Nvidia headers
[gldbg.git] / genwrap.py
index b940036e62b10e999a42346479e902a12b8096d9..da23cb331880292920fa98805f32b92e9c90de51 100755 (executable)
@@ -205,7 +205,7 @@ out.close()
 
 out = open(os.path.join(outdir, "glwrap.funcs"), "w")
 for f in funcs:
-       out.write("%s GLAPIENTRY gl%s(%s)\n{\n"%(f[1], f[0], ", ".join("%s %s"%(p[1], p[0]) for p in f[2])))
+       out.write("%s APIENTRY gl%s(%s)\n{\n"%(f[1], f[0], ", ".join("%s %s"%(p[1], p[0]) for p in f[2])))
 
        out.write("\tstatic %s (*orig)(%s) = NULL;\n"%(f[1], ", ".join(p[1] for p in f[2])))
        if f[1]!="void":