summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-23 23:31:33 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-23 23:31:33 +0200
commit157f5234c463abe1b23a2f86dd182f40f99020fe (patch)
tree8428dbbb979942caa68dc181452c2354c1b7e120 /lib
parent08c066cac2efdfcf569e47609e9e1b0a947ce129 (diff)
downloadxine-lib-157f5234c463abe1b23a2f86dd182f40f99020fe.tar.gz
xine-lib-157f5234c463abe1b23a2f86dd182f40f99020fe.tar.bz2
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/os_internal.h4
1 files changed, 4 insertions, 0 deletions
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 <stddef.h>
#include <stdarg.h>
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
#ifdef HOST_OS_DARWIN
/* Darwin (Mac OS X) needs __STDC_LIBRARY_SUPPORTED__ for SCNx64 and
* SCNxMAX macros */