summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-17 22:57:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-17 22:57:42 +0300
commit21f4d82b367750543ebfbc65df23e0863bf48c38 (patch)
tree63dfa3cda72741badf9810b6e215f912a44f5a8f /src/localconsts.h
parent3154e878e1f4c937807dfc94d1308049e94f9e65 (diff)
downloadmv-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.gz
mv-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.bz2
mv-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.xz
mv-21f4d82b367750543ebfbc65df23e0863bf48c38.zip
Fix code style.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 3620d441f..f54ae5659 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -71,11 +71,15 @@
#define DEPRECATED __attribute__ ((deprecated))
#define restrict __restrict__
+#ifdef __INTEL_COMPILER
+#define RETURNS_NONNULL
+#else // __INTEL_COMPILER
#if GCC_VERSION < 40900
#define RETURNS_NONNULL
-#else
+#else // GCC_VERSION < 40900
#define RETURNS_NONNULL __attribute__((returns_nonnull))
-#endif
+#endif // GCC_VERSION < 40900
+#endif // __INTEL_COMPILER
#ifndef ENABLE_CILKPLUS
#define A_NONNULL(...) __attribute__((nonnull (__VA_ARGS__)))