Skip to content
  • Stefan Weil's avatar
    Avoid build error caused by conflicting types for INT32 · 691bd67f
    Stefan Weil authored and Frediano Ziglio's avatar Frediano Ziglio committed
    Compiler error for cross builds using mingw-w64:
    
    In file included from /usr/share/mingw-w64/include/winnt.h:150,
                     from /usr/share/mingw-w64/include/minwindef.h:163,
                     from /usr/share/mingw-w64/include/windef.h:9,
                     from /usr/share/mingw-w64/include/windows.h:69,
                     from /usr/share/mingw-w64/include/winsock2.h:23,
                     from ../../../server/spice-core.h:29,
                     from ../../../server/spice.h:24,
                     from ../../../server/spice-wrapped.h:35,
                     from ../../../server/red-common.h:35,
                     from ../../../server/jpeg-encoder.c:22:
    /usr/share/mingw-w64/include/basetsd.h:31:22: error: conflicting types for ‘INT32’
       typedef signed int INT32,*PINT32;
                          ^~~~~
    In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/jpeglib.h:31,
                     from ../../../server/jpeg-encoder.c:20:
    /usr/x86_64-w64-mingw...
    691bd67f