diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-24 18:07:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-24 18:07:19 +0300 |
commit | 9d2eb460fa3569342044b6f3e61d52d86ca8cbb6 (patch) | |
tree | 70b9b43072ae67a379fea3693d8671bb75d2a0fa /src/localconsts.h | |
parent | 30da377919524a96a385cbe16f8ab74d5a4a7fab (diff) | |
download | plus-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.gz plus-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.bz2 plus-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.tar.xz plus-9d2eb460fa3569342044b6f3e61d52d86ca8cbb6.zip |
fix compilation warnings.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 4c4827d70..7cddefdcd 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -81,17 +81,26 @@ #define gnu_printf printf #endif +#ifdef ENABLE_CILKPLUS +#include <cilk/cilk.h> +#endif + #ifdef __GNUC__ #ifdef ENABLE_CILKPLUS -#if GCC_VERSION < 50000 -#define cilk_for for -#elif GCC_VERSION < 49000 +#if GCC_VERSION < 40900 #define cilk_for for #define cilk_spawn -#endif // GCC_VERSION < 50000 +#define cilk_sync +#elif GCC_VERSION < 50000 +#ifdef cilk_for +#undef cilk_for +#endif // cilk_for +#define cilk_for for +#endif // GCC_VERSION < 40900 #else // ENABLE_CILKPLUS #define cilk_for for #define cilk_spawn +#define cilk_sync #endif // ENABLE_CILKPLUS #endif // __GNUC__ @@ -157,7 +166,3 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif - -#ifdef ENABLE_CILKPLUS -#include <cilk/cilk.h> -#endif |