1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/editors/le
Dimitry Andric 1aa709605c editors/le: fix build with recent libc++ headers
As reported on the ports mailing lists, with recent libc++ headers on
e.g. 15.0-CURRENT, 13.4 or 14.2, editors/le fails with errors similar
to:

    /usr/include/c++/v1/ios:257:25: error: expected ')'
      257 |   static const fmtflags hex         = 0x0008;
          |                         ^
    ./edit.h:158:26: note: expanded from macro 'hex'
      158 | #define hex     (editmode==HEXM)
          |                          ^
    /usr/include/c++/v1/ios:257:25: note: to match this '('
    ./edit.h:158:17: note: expanded from macro 'hex'
      158 | #define hex     (editmode==HEXM)
          |                 ^

This is because edit.h defines a `hex` macro, and this clashes with
std::hex from the libc++ headers.

To fix the build, use post-patch to rename the `hex` macro to `is_hex`.

PR:		281141
Reported by:	J David <j.david.lists@gmail.com>
Approved by:	zi (maintainer)
MFH:		2024Q3
2024-08-30 21:29:53 +02:00
..
distinfo
Makefile editors/le: fix build with recent libc++ headers 2024-08-30 21:29:53 +02:00
pkg-descr
pkg-plist editors/le: Move man pages to share/man 2024-03-07 11:51:21 +00:00