[MacPorts] #66170: icu @72.1 fails to build on 10.6
MacPorts
noreply at macports.org
Sun Nov 6 21:37:11 UTC 2022
#66170: icu @72.1 fails to build on 10.6
---------------------+-------------------------
Reporter: jmroot | Owner: catap
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords: snowleopard
Port: icu |
---------------------+-------------------------
Comment (by jmroot):
> I was never sure why the <cinttypes> switch seemed to work, TBH.
The header in libstdc++ does this workaround for you:
{{{
// For 27.9.2/3 (see C99, Note 184)
#if _GLIBCXX_HAVE_INTTYPES_H
# ifndef __STDC_FORMAT_MACROS
# define _UNDEF__STDC_FORMAT_MACROS
# define __STDC_FORMAT_MACROS
# endif
# include <inttypes.h>
# ifdef _UNDEF__STDC_FORMAT_MACROS
# undef __STDC_FORMAT_MACROS
# undef _UNDEF__STDC_FORMAT_MACROS
# endif
#endif
}}}
The one in libc++ just does a plain `#include <inttypes.h>`, which as it
happens works fine on 10.7+.
--
Ticket URL: <https://trac.macports.org/ticket/66170#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list