mingw32 and mingw64 compatibility patches
Brought to you by:
ndurner
Fixes some function prototypes to avoid gcc warnings (passing pointer as int, passing const char * as non-const, etc)
#ifdefs __MINGW32__ some parts of the source that are implemented by mingw
#ifdefs __MINGW64__ some parts of the source that are implemented by mingw-w64
Fixes File and Link release order
Adds richer GLE->errno mapping
mingw and mingw-w64 patch collection
You might also want to add extern "C" to some headers (such as langinfo.h)