From 157f5234c463abe1b23a2f86dd182f40f99020fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 23 May 2008 23:31:33 +0200 Subject: Check for MIN/MAX macro and include the header for them if found. The MIN/MAX macro are quite often used on the source code to find the minimum or maximum value between two, instead of defining it per-unit, check if the system provides them include the right header, otherwise define them during configure run. --- lib/os_internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/os_internal.h') diff --git a/lib/os_internal.h b/lib/os_internal.h index 11601bbdf..6e6e14a3d 100644 --- a/lib/os_internal.h +++ b/lib/os_internal.h @@ -4,6 +4,10 @@ #include #include +#ifdef HAVE_SYS_PARAM_H +# include +#endif + #ifdef HOST_OS_DARWIN /* Darwin (Mac OS X) needs __STDC_LIBRARY_SUPPORTED__ for SCNx64 and * SCNxMAX macros */ -- cgit v1.2.3