Found warnings related to unknown pragma inline_recursion while Using clang++/meson into header_start.h and header_end.h, this is caused since clang defines the _MSC_VER but does not have the inline_recursion pragma
Steps to reproduce (or a small repro code sample)
compile an example project that uses toml++ in meson using vainilla clang++ under windows
Additional information
managed to fix it by adding a check for __clang__ definition
Environment
TOML++ 3.3.0 (HEAD)
Compiler:
Clang++ 15.0.5
C++ standard mode:
C++ 20
Target arch:
x64
Library configuration overrides:
Relevant compilation flags:
Describe the bug
Found warnings related to unknown pragma
inline_recursion
while Using clang++/meson intoheader_start
.h andheader_end.h
, this is caused since clang defines the_MSC_VER
but does not have theinline_recursion
pragmaSteps to reproduce (or a small repro code sample)
compile an example project that uses toml++ in meson using vainilla
clang++
under windowsAdditional information
managed to fix it by adding a check for
__clang__
definition