diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-08 18:27:54 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-08 18:27:54 +0000 |
commit | c912dc0c7a6ab39c90200ed5614b181cd1397d5c (patch) | |
tree | a3b2df0f9a3a62ea9de95395d8e313bffddce203 /common/usuals.h | |
parent | 0561cfd0ce346fce733dd1b25e5b2650e50bf7bf (diff) |
Initial import
Diffstat (limited to 'common/usuals.h')
-rw-r--r-- | common/usuals.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/usuals.h b/common/usuals.h new file mode 100644 index 0000000..e14ecf5 --- /dev/null +++ b/common/usuals.h @@ -0,0 +1,38 @@ + + +#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])) + +#ifdef _DEBUG + #include "assert.h" + #define ASSERT assert +#else + #define ASSERT +#endif + +#endif /* __USUALS_H__ */ |