summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-29 21:16:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-30 14:43:34 +0300
commit9a39234015f092c5eb0f461da91689e71bf43943 (patch)
treee798f45bc08f3015020972a2db0f015eb8cc0c42 /src/localconsts.h
parent23a3e48c33b14cc0bda0eb3fda361961e8d6172c (diff)
downloadplus-9a39234015f092c5eb0f461da91689e71bf43943.tar.gz
plus-9a39234015f092c5eb0f461da91689e71bf43943.tar.bz2
plus-9a39234015f092c5eb0f461da91689e71bf43943.tar.xz
plus-9a39234015f092c5eb0f461da91689e71bf43943.zip
Fix code style.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index dcd0613b2..58923b609 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -70,13 +70,20 @@
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))
#define DEPRECATED __attribute__ ((deprecated))
#define restrict __restrict__
+
+#ifndef ENABLE_CILKPLUS
#define A_NONNULL(...) __attribute__((nonnull (__VA_ARGS__)))
#else
+#define A_NONNULL(...)
+#endif
+
+#else
#define A_UNUSED
#define A_WARN_UNUSED
#define gnu_printf printf
#define DEPRECATED
#define restrict
+#define A_NONNULL(...)
#endif
#ifdef __clang__
#define gnu_printf printf