I went and checked the browsable SVN repository and you're right. I have no idea why Subversion thinks that gl_preprocess.c r4081 differs from my working directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch to fix gcc-4.6 errors
fixed?
Yeah, r4081 compiles as-is.
Hold on:
When I went to make a patch against r4081, I found this:
===================================================================
--- src/gl_preprocess.c (revision 4081)
+++ src/gl_preprocess.c (working copy)
@@ -32,6 +32,9 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+#ifndef CALLBACK
+#define CALLBACK
+#endif
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
Index: src/gl_texture.c
If this change isn't included in gl_preprocess.c, it fails to compile with gcc-4.6.
What? r4081 already has this block
#ifndef CALLBACK
#define CALLBACK
#endif
after #ifdef _WIN32 block
I went and checked the browsable SVN repository and you're right. I have no idea why Subversion thinks that gl_preprocess.c r4081 differs from my working directory.