diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-30 15:16:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-30 15:16:52 +0200 |
commit | 6ce30bd21eeae5630087f549f7aaec487c80b802 (patch) | |
tree | d10cbaf3bbfc72ea4af0c09e479377f27d4e3a1d | |
parent | add slibc-alloc.h (diff) | |
download | slibc-6ce30bd21eeae5630087f549f7aaec487c80b802.tar.gz slibc-6ce30bd21eeae5630087f549f7aaec487c80b802.tar.bz2 slibc-6ce30bd21eeae5630087f549f7aaec487c80b802.tar.xz |
add __SLIBC_ONLY macro
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/slibc/features.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/slibc/features.h b/include/slibc/features.h index f62f5cb..b6fc406 100644 --- a/include/slibc/features.h +++ b/include/slibc/features.h @@ -80,6 +80,16 @@ #endif +/** + * Macro used to exclude code unless `_SLIBC_SOURCE` is set. + */ +#if defined(_SLIBC_SOURCE) +# define __SLIBC_ONLY(...) __VA_ARGS__ +#else +# define __SLIBC_ONLY(...) /* ignore */ +#endif + + #endif |