diff options
| author | Joel Klinghed <the_jk@felicia.(none)> | 2009-11-05 13:42:31 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@felicia.(none)> | 2009-11-05 13:42:31 +0100 |
| commit | 8d2da88d9dc9a8337b1a406c75f04bf16fac9589 (patch) | |
| tree | e4fc1b1248b31e89f4bdf194497e03f58ffddc5d /src/common.h | |
Initial commit.
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..60cfcea --- /dev/null +++ b/src/common.h @@ -0,0 +1,22 @@ +#ifndef COMMON_H +#define COMMON_H + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#if HAVE_STDLIB_H +# include <stdlib.h> +#else +# errnor "no stdlib, wtf?" +#endif + +#ifdef DEBUG +# if HAVE_ASSERT_H +# include <assert.h> +# endif +#else +# define assert(__x) /* __x */ +#endif + +#endif /* COMMON_H */ |
