From: Bruno Haible Date: Thu, 6 Aug 2020 18:41:33 +0000 (+0200) Subject: safe-alloc: Remove unused code. X-Git-Tag: v1.0~3815 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b24a198e5299616efc410605bac34ba60fbec906;p=gnulib.git safe-alloc: Remove unused code. * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro. --- 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)