diff options
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 */ |
