diff options
Diffstat (limited to 'daemon/usuals.h')
-rw-r--r-- | daemon/usuals.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/daemon/usuals.h b/daemon/usuals.h new file mode 100644 index 0000000..22dcb3a --- /dev/null +++ b/daemon/usuals.h @@ -0,0 +1,31 @@ + + +#ifndef __USUALS_H__ +#define __USUALS_H__ + +#include <sys/types.h> + +#include "config.h" + +#include <stdio.h> +#include <stdlib.h> +#include <errno.h> +#include <string.h> + +#include "compat.h" + +#ifndef NULL +#define NULL 0 +#endif + +#ifndef max +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef min +#define min(a,b) (((a) < (b)) ? (a) : (b)) +#endif + +#define countof(x) (sizeof(x) / sizeof(x[0])) + +#endif /* __USUALS_H__ */ |