}
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
inline Formatter *defaultFormatter(void) {
-#ifdef WIN32
+#ifdef _WIN32
return new WindowsFormatter;
#else
return new AnsiFormatter;
#ifndef _GLIMPORTS_HPP_
#define _GLIMPORTS_HPP_
-#ifdef WIN32
+#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
-#else /* !WIN32 */
+#else /* !_WIN32 */
#include <X11/Xlib.h>
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
#include <GL/gl.h>
#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
#endif
-#ifdef WIN32
+#ifdef _WIN32
#include <GL/wglext.h>
#endif /* __MINGW32__ */
-#else /* !WIN32 */
+#else /* !_WIN32 */
#include <GL/glx.h>
#include <GL/glext.h>
/* Prevent collision with Trace::Bool */
#undef Bool
-#endif /* !WIN32 */
+#endif /* !_WIN32 */
#endif /* _GLIMPORTS_HPP_ */
def header(self):
print '#ifdef RETRACE'
- print '# ifdef WIN32'
+ print '# ifdef _WIN32'
print '# define __getPrivateProcAddress(name) wglGetProcAddress(name)'
print '# else'
print '# define __getPrivateProcAddress(name) glXGetProcAddressARB((const GLubyte *)(name))'
print '# endif'
print '# define __abort() OS::Abort()'
print '#else /* !RETRACE */'
- print '# ifdef WIN32'
+ print '# ifdef _WIN32'
print '# define __getPrivateProcAddress(name) __wglGetProcAddress(name)'
print ' static inline PROC __stdcall __wglGetProcAddress(const char * lpszProc);'
print '# else'
print
dispatcher = GlDispatcher()
dispatcher.header()
- print '#ifdef WIN32'
+ print '#ifdef _WIN32'
print
dispatcher.dispatch_api(wglapi)
- print '#else /* !WIN32 */'
+ print '#else /* !_WIN32 */'
print
dispatcher.dispatch_api(glxapi)
- print '#endif /* !WIN32 */'
+ print '#endif /* !_WIN32 */'
print
dispatcher.dispatch_api(glapi)
print