[PATCH, d] Committed fix building on hosts missing _MIN and MAX macros

Iain Buclaw ibuclaw@gdcproject.org
Wed Apr 17 06:13:00 GMT 2019


This patch adds missing macros that the dmd front-end makes use of, as
seen on one of the BSDs where the include for int_const.h is guarded,
and defines any __unix__ system as being POSIX.

Bootstrapped and regression tested on x86_64-linux-gnu.

Committed to trunk as r270403.

2019-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>

        * d-system.h (POSIX): Define unix as POSIX.
        (INT32_MAX, INT32_MIN, INT64_MIN, UINT32_MAX, UINT64_MAX): Provide
        fallback definitions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsystem.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190417/af86da42/attachment.bin>

More information about the Gcc-patches mailing list