From: Matthew Fernandez Date: Sat, 12 Feb 2022 03:18:29 +0000 (+1100) Subject: API BREAK: remove no longer used 'MAXFLOAT' X-Git-Tag: 3.0.0~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeac3a2eec6b15e6f5992661db9dc65398df24b8;p=graphviz API BREAK: remove no longer used 'MAXFLOAT' --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e978cc2c..f998c4b9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 has been deprecated. Tools such as [Leak Sanitizer](https://clang.llvm.org/docs/LeakSanitizer.html) are a more effective modern way of diagnosing memory safety issues. +- **Breaking**: Graphviz headers no longer define the constant `MAXFLOAT`. A + replacement is `FLT_MAX` in the C standard library’s float.h. - The Ming plugin that produced Shockwave files has been removed. This format was EOLed by Adobe in April 2019. #2160 - CentOS 7 packages now include libmingle and the `mingle` program. diff --git a/lib/common/arith.h b/lib/common/arith.h index 264da8e69..44556cec5 100644 --- a/lib/common/arith.h +++ b/lib/common/arith.h @@ -43,10 +43,6 @@ extern "C" { #define MAXDOUBLE 1.7976931348623157e+308 #endif -#ifndef MAXFLOAT -#define MAXFLOAT ((float)3.40282347e+38) // exact value: 0x1.fffffep+127f -#endif - #ifdef BETWEEN #undef BETWEEN #endif diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 53ad00b07..e425cf167 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -186,9 +186,6 @@ extern "C" { #define EINVAL 22 #endif /* function to get the decimal point for local environment */ -#ifdef MAXFLOAT /* we don't need these, so we zap them to avoid compiler warnings */ -#undef MAXFLOAT -#endif #include #define SFSETLOCALE(decimal,thousand) \ { struct lconv* lv; \