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 | ac7e532095160a85ca03476aa707ef80a8a8ce5b (patch) | |
tree | 4e331300e5f11192869e66b9f08e58c4cf13cce3 /src/usuals.h | |
parent | 17e2bbdacafb2c969d26a89ede3b57b60dc19bc1 (diff) |
Initial import
Diffstat (limited to 'src/usuals.h')
-rw-r--r-- | src/usuals.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/usuals.h b/src/usuals.h new file mode 100644 index 0000000..e14ecf5 --- /dev/null +++ b/src/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__ */ |