summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localconsts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index b0ab4ff3c..8ff706f4a 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -85,8 +85,13 @@
#else
#define restrict2 __restrict__
#endif
+#ifndef ENABLE_CILKPLUS
#define A_CONST __attribute__ ((const))
#define A_PURE __attribute__ ((pure))
+#else
+#define A_CONST
+#define A_PURE
+#endif
#ifdef __INTEL_COMPILER
#define RETURNS_NONNULL