diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/commonbase.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/commonbase.h b/src/common/commonbase.h new file mode 100644 index 0000000..497d3fa --- /dev/null +++ b/src/common/commonbase.h @@ -0,0 +1,23 @@ + +/* + * common config for project. Here goes stuff like feature-test-macros etc. + * + * Every header file MUST include this file AS THE 1ST include. + */ + + +#define _POSIX_C_SOURCE 200809L + + +#define STR_QUOT_IAHGEWIH(s) #s +#define STR_QUOT(s) STR_QUOT_IAHGEWIH(s) + +#define STR_CAT(a, b) a ## b + +#ifndef likely +# define likely(a) (a) +#endif +#ifndef unlikely +# define unlikely(a) (a) +#endif + |