sctplab/usrsctp

Compilation failure on MinWG GCC

nazar-pc opened this issue · 1 comments

I'm getting this error with latest master branch as of right now even though it is supposedly supported from the issues and PRs I found:

..\..\subprojects\usrsctp-1ade45cbadfd19298d2c47dc538962d4425ad2dd\usrsctplib/usrsctp.h:69:19: error: expected primary-expression before 'unsigned'
 #define uint32_t  unsigned __int32
                   ^~~~~~~~
..\..\subprojects\usrsctp-1ade45cbadfd19298d2c47dc538962d4425ad2dd\usrsctplib/usrsctp.h:69:19: note: in definition of macro 'uint32_t'
 #define uint32_t  unsigned __int32
                   ^~~~~~~~

Meson detects compiler as:

gcc 8.1.0 "gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0"

Here is the job where this error happened in case it is helpful: https://github.com/nazar-pc/mediasoup/runs/3148235269?check_suite_focus=true

Looks like it is somehow related to its usage in linked project as uint32_t{0}, replacing it with (uint32_t){0} helps, maybe it can be defined as such from the beginning (#define uint32_t (unsigned __int32))?

Ideally, of course, those types shouldn't leak into other projects through header files as it causes other kinds of issues.