These constants are defined in ISO C to be available in limits.h, but were
commonly available pre-ISO C too. These definitions remained here for legacy
reasons, because removing them was considered an API break and not worth doing
for this minor clean up. However the upcoming release is projected to involve a
major version number bump.
- **Breaking**: Using Graphviz as a library on Windows now requires the `GVDLL`
symbol to be set to ensure correct linking.
+- **Breaking**: Graphviz headers no longer (re-)define the C constants `INT_MIN`
+ and `INT_MAX`. Replacements can be found in the C standard library’s limits.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.
#define SGN(a) (((a)<0)? -1 : 1)
#define CMP(a,b) (((a)<(b)) ? -1 : (((a)>(b)) ? 1 : 0))
-#ifndef INT_MAX
-#define INT_MAX ((int)(~(unsigned)0 >> 1))
-#endif
-
-#ifndef INT_MIN
-#define INT_MIN (-INT_MAX - 1)
-#endif
-
#ifndef MAXSHORT
#define MAXSHORT (0x7fff)
#endif