]> Savannah Git Hosting - gnulib.git/commitdiff
safe-alloc: Remove unused code.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Aug 2020 18:41:33 +0000 (20:41 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Aug 2020 18:41:33 +0000 (20:41 +0200)
* lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.

ChangeLog
lib/safe-alloc.h

index b988961038f1255cd5c3418699d57948ea215f9c..12b4bf3870330a9e8f5fa89190344dbe63b91297 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-06  Bruno Haible  <bruno@clisp.org>
+
+       safe-alloc: Remove unused code.
+       * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
+
 2020-08-06  Bruno Haible  <bruno@clisp.org>
 
        Use __builtin_expect with clang everywhere.
index 58970bd00ad92e8374da3e2fb9c88cdb91710f8a..9bf1eca4313ee1b2f857c7f9780ee83e6a64ac67 100644 (file)
 
 # include <stdlib.h>
 
-#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)