[tz] [PROPOSED 3/7] Remove duplicate HAVE_GENERIC definition

Paul Eggert eggert at cs.ucla.edu
Wed Oct 26 04:10:17 UTC 2022


* zdump.c (HAVE_GENERIC): Remove definition that is unused because
private.h already defines it.  I put this definition in by mistake
in my 2022-01-25 patch.
---
 zdump.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/zdump.c b/zdump.c
index ef6cb8b..168f72a 100644
--- a/zdump.c
+++ b/zdump.c
@@ -56,21 +56,6 @@
 */
 enum { SECSPER400YEARS_FITS = SECSPERLYEAR <= INTMAX_MAX / 400 };
 
-#if !defined HAVE_GENERIC && defined __has_extension
-# if __has_extension(c_generic_selections)
-#  define HAVE_GENERIC 1
-# else
-#  define HAVE_GENERIC 0
-# endif
-#endif
-/* _Generic is buggy in pre-4.9 GCC.  */
-#if !defined HAVE_GENERIC && defined __GNUC__
-# define HAVE_GENERIC (4 < __GNUC__ + (9 <= __GNUC_MINOR__))
-#endif
-#ifndef HAVE_GENERIC
-# define HAVE_GENERIC (201112 <= __STDC_VERSION__)
-#endif
-
 #if HAVE_GETTEXT
 # include <locale.h> /* for setlocale */
 #endif /* HAVE_GETTEXT */
-- 
2.37.3



More information about the tz mailing list