From b0115b2b92fb4a2ba2d844ee867bacf77e518d66 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Sat, 26 Mar 2022 13:47:20 +0100 Subject: Remove hacky DBL_MAX and use float.h instead --- plugins-root/check_icmp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 61198237..1b6a5e17 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -63,6 +63,7 @@ const char *email = "devel@monitoring-plugins.org"; #include #include #include +#include /** sometimes undefined system macros (quite a few, actually) **/ @@ -95,10 +96,6 @@ const char *email = "devel@monitoring-plugins.org"; # define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 #endif -#ifndef DBL_MAX -# define DBL_MAX 9.9999999999e999 -#endif - typedef unsigned short range_t; /* type for get_range() -- unimplemented */ typedef struct rta_host { -- cgit v1.2.3-74-g34f1