Closed compnerd closed 6 months ago
@kainjow @nwellnhof Does this change make sense to you? (cf. #76 for background)
Yes, if you want to drop support for older MSVC compilers.
You can also remove the /TP
flag hack here: https://github.com/commonmark/cmark/blob/master/CMakeLists.txt#L50
@nwellnhof good point! I'll do a follow up to clean that up as well.
I don't know if there's any reason to support these old compilers. (But I don't know enough about the Windows world to answer that question.)
You can find a history of C99/C11 support in Microsoft compilers in my Stackoverflow answer: https://stackoverflow.com/a/28118893/1956010
It's a judgment call but sooner or later this cruft should be removed. MSVC 14.0 (Visual Studio 2015) should be able to compile libcmark out of the box.
OK, let's do it sooner then!
Modern versions of MSVC (2015+) support most of the C99 standard, including the
inline
keyword. Avoid the vendor extension__inline
and use the ISO standard spelling.