Fix building with MinGW 11.2.0 on Windows, add it into CI/CD

This commit is contained in:
Nikolaj Schlej 2022-09-27 17:36:27 +02:00 committed by Nikolaj Schlej
parent 9bb0549ad2
commit 6247fa5bbc
3 changed files with 26 additions and 7 deletions

View file

@ -12,8 +12,8 @@
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#define __LITTLE_ENDIAN LITTLE_ENDIAN
// Windows with MS compiler
#elif defined(_MSC_VER)
// Windows with MS or MinGW compilers
#elif defined(_MSC_VER) || defined(__MINGW32__)
#include <stdlib.h>
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321