NordicSemiconductor / zcbor

Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions.
Apache License 2.0
118 stars 37 forks source link

MSVC build is broken #436

Closed vvmorozov closed 3 months ago

vvmorozov commented 4 months ago

Due to use of GNU compiler extensions like __attribute__((used)) or __attribute__((weak)) the code won't compile with MSVC

oyvindronningstad commented 4 months ago

Thanks for raising this.

Unfortunately I don't have access to MSVC and never use it. Also, there seems to be no good replacement for __attribute__((weak)) in MSVC. These things considered, I will likely not implement MSVC support, but you're welcome to contribute it.