]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Remove inclusion of various MAXINT from zebra.h
authorDonald Sharp <sharpd@nvidia.com>
Thu, 4 Jan 2024 19:24:01 +0000 (14:24 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 4 Jan 2024 19:24:01 +0000 (14:24 -0500)
All modern systems should have these defined.  Let's stop
paying the cost of this compilation.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/zebra.h

index f838990b30a49d12dd883f3a64c75d3072fadb0f..362037bf54c6b89e456cc4d47f6cfff5ef2f889b 100644 (file)
 #include <netinet6/nd6.h>
 #endif /* HAVE_NETINET6_ND6_H */
 
-/* Some systems do not define UINT32_MAX, etc.. from inttypes.h
- * e.g. this makes life easier for FBSD 4.11 users.
- */
-#ifndef INT16_MAX
-#define INT16_MAX      (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX      (2147483647)
-#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX     (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX     (4294967295U)
-#endif
-
 /* Local includes: */
 #if !defined(__GNUC__)
 #define __attribute__(x)