mirror of https://github.com/CGAL/cgal
Fix __GNUC__ tests
This commit is contained in:
parent
8aa6bb3953
commit
97cac65a86
|
|
@ -122,7 +122,7 @@ public:
|
|||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::Around_point_circulator;
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
|
||||
friend class Trapezoidal_decomposition_2<Traits>::Around_point_circulator;
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ public:
|
|||
#ifdef CGAL_PM_FRIEND_CLASS
|
||||
#if defined(__SUNPRO_CC) || defined(__PGI) || defined(__INTEL_COMPILER)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#elif defined(__GNUC__)
|
||||
#elif (__GNUC__ > 0)
|
||||
friend class Trapezoidal_decomposition_2<Traits>::In_face_iterator;
|
||||
#else
|
||||
friend class In_face_iterator;
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ union yyalloc
|
|||
/* Copy COUNT objects from FROM to TO. The source and destination do
|
||||
not overlap. */
|
||||
# ifndef YYCOPY
|
||||
# if defined (__GNUC__)
|
||||
# if (__GNUC__ > 0)
|
||||
# define YYCOPY(To, From, Count) \
|
||||
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
||||
# else
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ int main() {
|
|||
#endif
|
||||
|
||||
#if __has_feature(cxx_thread_local) || \
|
||||
( defined(__GNUC__) && __cplusplus >= 201103L )
|
||||
( __GNUC__ > 0 && __cplusplus >= 201103L )
|
||||
return 0;
|
||||
#else
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@
|
|||
#define CGAL_CFG_NO_TR1_ARRAY 1
|
||||
// never use TR1
|
||||
#define CGAL_CFG_NO_TR1_TUPLE 1
|
||||
#if !defined(__GNUC__) || defined(__INTEL_COMPILER)
|
||||
#if (__GNUC__ <= 0) || defined(__INTEL_COMPILER)
|
||||
#define CGAL_CFG_NO_STATEMENT_EXPRESSIONS 1
|
||||
#endif
|
||||
#if _MSC_VER==1800
|
||||
|
|
@ -509,20 +509,20 @@ using std::max;
|
|||
#endif
|
||||
|
||||
#if __has_feature(cxx_thread_local) || \
|
||||
( defined(__GNUC__) && __cplusplus >= 201103L ) || \
|
||||
( (__GNUC__ > 0) && __cplusplus >= 201103L ) || \
|
||||
( _MSC_VER >= 1900 )
|
||||
// see also Installation/cmake/modules/config/support/CGAL_test_cpp_version.cpp
|
||||
#define CGAL_CAN_USE_CXX11_THREAD_LOCAL
|
||||
#endif
|
||||
|
||||
#if (__has_include(<mutex>) && __cplusplus >= 201103L ) | \
|
||||
( defined(__GNUC__) && __cplusplus >= 201103L ) || \
|
||||
( (__GNUC__ > 0) && __cplusplus >= 201103L ) || \
|
||||
( _MSC_VER >= 1700 )
|
||||
#define CGAL_CAN_USE_CXX11_MUTEX
|
||||
#endif
|
||||
|
||||
#if (__has_include(<atomic>) && __cplusplus >= 201103L ) || \
|
||||
( defined(__GNUC__) && __cplusplus >= 201103L ) || \
|
||||
( (__GNUC__ > 0) && __cplusplus >= 201103L ) || \
|
||||
( _MSC_VER >= 1700 )
|
||||
#define CGAL_CAN_USE_CXX11_ATOMIC
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ CGAL_static_assertion_msg(false, CGAL_INTERNAL_DEPRECATED_MESSAGE);
|
|||
#elif !defined(CGAL_NO_DEPRECATION_WARNINGS) // don't trigger on NO_DEPRECATION_WARNINGS
|
||||
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
|
||||
# pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
|
||||
# elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
|
||||
# elif (__GNUC__ > 0) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
|
||||
// warning does not expand its arguments, issue a warning and add the message.
|
||||
# warning "A deprecated header has been included."
|
||||
# pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ inline double IA_opacify(double x)
|
|||
// Intel has a bug where -mno-sse still defines __SSE__ and __SSE2__
|
||||
// (-mno-sse2 works though), no work-around for now.
|
||||
# if defined __SSE2_MATH__ || (defined __INTEL_COMPILER && defined __SSE2__)
|
||||
# if defined(__GNUC__)
|
||||
# if (__GNUC__ > 0)
|
||||
// ICEs in reload/LRA with older versions.
|
||||
asm volatile ("" : "+gx"(x) );
|
||||
# else
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
// Author(s) : Aymeric PELLE <aymeric.pelle@sophia.inria.fr>
|
||||
// Mael Rouxel-Labbé
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if (__GNUC__ > 0)
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// Author(s) : Mariette Yvinec <Mariette.Yvinec@sophia.inria.fr>
|
||||
// Manuel Caroli <Manuel.Caroli@sophia.inria.fr>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if (__GNUC__ > 0)
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue