define MAX for all OS, instead of plenty #include

SVN revision: 40012
This commit is contained in:
Vincent Torri 2009-04-13 10:25:11 +00:00
parent bb15485a0f
commit 64f80081aa
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,12 @@
#include <sys/stat.h>
#include <fcntl.h>
/* define MAX for all OS, instead of plenty #include */
#ifndef MAX
# define MAX(a, b) ((a) < (b) ? (b) : (a))
#endif
/* supported batery system schemes - irrespective of OS */
#define CHECK_NONE 0
#define CHECK_ACPI 1