From 0bb92ae8f46dc05a62a5904103d4cbfa761730b4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 31 May 2023 17:02:51 -0700 Subject: [PROPOSED] Prefer -std=gnu11 to -DPORT_TO_C89 * Makefile: Improve commentary for the GCC 4.9.4 case. Problem reported by Naveen Kumar in: https://mm.icann.org/pipermail/tz/2023-May/032969.html --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index da3ee259..17e73891 100644 --- a/Makefile +++ b/Makefile @@ -237,6 +237,8 @@ LDLIBS= # -DHAVE_UTMPX_H=0 if does not work* # -Dlocale_t=XXX if your system uses XXX instead of locale_t # -DPORT_TO_C89 if tzcode should also run on C89 platforms+ +# Typically it is better to use a later standard. For example, +# with GCC 4.9.4 (2016), prefer '-std=gnu11' to '-DPORT_TO_C89'. # -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers # with external linkage, e.g., applications cannot define 'localtime'. # -Dssize_t=long on hosts like MS-Windows that lack ssize_t -- 2.39.2