C++11 made the use of these macro obsolete, see https://sourceware.org/bugzilla/show_bug.cgi?id=15366
As a side effect this prevents https://github.com/swig/swig/issues/2193.
Differential D134877
[lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS serge-sans-paille on Sep 29 2022, 7:00 AM. Authored by
Details C++11 made the use of these macro obsolete, see https://sourceware.org/bugzilla/show_bug.cgi?id=15366 As a side effect this prevents https://github.com/swig/swig/issues/2193.
Diff Detail Event TimelineComment Actions Looking at https://bugzilla.redhat.com/show_bug.cgi?id=2128646, I'd say that the real bug is that we're defining this macro in two places. How about we leave these definitions as they are, and remove the one at bindings/interfaces.swig:5 ? Comment Actions In that case I would advocate for keeping the definition in the header, as it's commented (which means adding a definition for __STDC_CONSTANT_MACROS in the interface too). Comment Actions It turns out that the culprint macro are actually obsolete in C++11, so just get rid of them. |