Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
7dd92158
Commit
7dd92158
authored
Oct 15, 2016
by
Praetorius, Simon
Browse files
configuration files adopted to cmake configuration and automatic c++11 detection
parent
bda1948a
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/config/Config_clang.h
View file @
7dd92158
...
...
@@ -47,10 +47,7 @@ typedef size_t aligned_size_t __attribute__ ((aligned(CACHE_LINE)));
// C++11 features
// --------------
#if __cplusplus > 199711L
#ifndef HAS_CXX11
#define HAS_CXX11 1
#endif
#ifdef HAS_CXX11
// __has_feature(cxx_rvalue_references)
#if CLANG_VERSION >= 20900 && !defined(HAS_VARIADIC_TEMPLATES)
...
...
AMDiS/src/config/Config_gcc.h
View file @
7dd92158
...
...
@@ -47,10 +47,7 @@ typedef size_t aligned_size_t __attribute__ ((aligned(CACHE_LINE)));
// C++11 features
// --------------
#if __cplusplus > 199711L
#ifndef HAS_CXX11
#define HAS_CXX11 1
#endif
#ifdef HAS_CXX11
#if GCC_VERSION >= 40300 && !defined(HAS_VARIADIC_TEMPLATES)
#define HAS_VARIADIC_TEMPLATES 1
...
...
AMDiS/src/config/Config_intel.h
View file @
7dd92158
...
...
@@ -51,15 +51,7 @@ typedef __declspec(align(CACHE_LINE)) size_t aligned_size_t;
// C++11 features
// --------------
// #if __cplusplus > 199711L
// workaround needed to test for -std=c++11 enabled, since __cplusplus gives wrong values
#include <vector>
#include <functional>
#if defined(_GLIBCXX_TUPLE) || defined(_GLIBCXX_TYPE_TRAITS) || defined(_GLIBCXX_ARRAY) || (__cplusplus > 199711L)
#ifndef HAS_CXX11
#define HAS_CXX11 1
#endif
#ifdef HAS_CXX11
#if INTEL_VERSION >= 1201 && !defined(HAS_VARIADIC_TEMPLATES)
#define HAS_VARIADIC_TEMPLATES 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment