This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
ClosedPublic

Authored by serge-sans-paille on Sep 29 2022, 7:00 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 7:00 AM
serge-sans-paille requested review of this revision.Sep 29 2022, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 7:00 AM
labath added a subscriber: labath.Sep 29 2022, 7:33 AM

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 ?

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 ?

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).

sure, sounds good. TBH, I am not sure if either of those is really needed.

serge-sans-paille retitled this revision from [lldb] Fixes for swig-4.1.0 macro definition correction to [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
serge-sans-paille edited the summary of this revision. (Show Details)

It turns out that the culprint macro are actually obsolete in C++11, so just get rid of them.

labath accepted this revision.Sep 29 2022, 10:32 PM

ship it.

This revision is now accepted and ready to land.Sep 29 2022, 10:32 PM