I need to apply this (sane) patch to cross compile glew with MinGW:
--- glew-1.9.0.orig/include/GL/glew.h 2012-08-06 17:59:08.000000000 +0200
+++ glew-1.9.0/include/GL/glew.h 2013-05-25 21:39:27.000000000 +0200
@@ -113,7 +113,7 @@
#define GLEW_APIENTRY_DEFINED
# if defined(MINGW32) || defined(CYGWIN)
# define APIENTRY stdcall
-# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC)
+# elif (defined(_MSC_VER) && (_MSC_VER >= 800)) || defined(_STDCALL_SUPPORTED) || defined(BORLANDC)
# define APIENTRY __stdcall
# else
# define APIENTRY
Please incorporate this in your code :)
GLEW 2.0.0 release candidate is building fine with MinGW, closing this.
Thanks for the report.