From b24a198e5299616efc410605bac34ba60fbec906 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Aug 2020 20:41:33 +0200 Subject: [PATCH] safe-alloc: Remove unused code. * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro. --- ChangeLog | 5 +++++ lib/safe-alloc.h | 9 --------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index b988961038..12b4bf3870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-08-06 Bruno Haible + + safe-alloc: Remove unused code. + * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro. + 2020-08-06 Bruno Haible Use __builtin_expect with clang everywhere. diff --git a/lib/safe-alloc.h b/lib/safe-alloc.h index 58970bd00a..9bf1eca431 100644 --- a/lib/safe-alloc.h +++ b/lib/safe-alloc.h @@ -22,15 +22,6 @@ # include -#ifndef __GNUC_PREREQ -# if defined __GNUC__ && defined __GNUC_MINOR__ -# define __GNUC_PREREQ(maj, min) \ - ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) -# else -# define __GNUC_PREREQ(maj, min) 0 -# endif -#endif - /* Don't call these directly - use the macros below */ int safe_alloc_alloc_n (void *ptrptr, size_t size, size_t count, int zeroed) -- 2.39.5