I can't build bimg on mingw/gcc, and the error message is:
In file included from C:/msys64/mingw64/include/c++/8.2.0/cmath:45,
from C:/msys64/mingw64/include/c++/8.2.0/math.h:36,
from ../../../3rdparty/astc/astc_color_quantize.cpp:20:
C:/msys64/mingw64/x86_64-w64-mingw32/include/math.h: In function 'int __isnanl(long double)':
C:/msys64/mingw64/x86_64-w64-mingw32/include/math.h:573:65: error: lvalue required as left operand of assignment
xx = (int) (ld.ldt->lh.low | (ld.ldt->lh.high & 0x7fffffffu)); /* explicit */
^
I can't build bimg on mingw/gcc, and the error message is:
I found astc lib define a macro xx to xx() at https://github.com/bkaradzic/bimg/blob/master/3rdparty/astc/vectypes.h#L15874 , and mingw's runtime use xx as a local variable name in math.h .
Including math.h before vectypes.h can solve this issue.