Menu

#61 Fix cross compilation with MinGW on Linux

2.0.0
closed
None
1
2016-07-09
2014-01-23
No

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 :)

Discussion

  • Nigel Stewart

    Nigel Stewart - 2014-07-13
    • Group: 1.9.0 --> 1.10.1
     
  • Nigel Stewart

    Nigel Stewart - 2016-07-09
    • status: open --> closed
    • assigned_to: Nigel Stewart
    • Group: 1.10.1 --> 2.0.0
     
  • Nigel Stewart

    Nigel Stewart - 2016-07-09

    GLEW 2.0.0 release candidate is building fine with MinGW, closing this.
    Thanks for the report.

     
MongoDB Logo MongoDB