Fix undefined MSVC macro warning
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
// macro expansion and preprocessor defines
|
||||
// don't work properly.
|
||||
|
||||
#if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
#if ((defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
#include "Vector11T.hh"
|
||||
#else
|
||||
#ifndef DOXYGEN
|
||||
|
||||
@@ -170,7 +170,7 @@ class GenericIteratorT {
|
||||
return cpy;
|
||||
}
|
||||
|
||||
#if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
#if ((defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
template<class T = value_handle>
|
||||
auto operator+=(int amount) ->
|
||||
typename std::enable_if<
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
#if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#if ((defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
#define OM_HAS_HASH
|
||||
#endif
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#include <mutex>
|
||||
#endif
|
||||
|
||||
@@ -189,7 +189,7 @@ protected:
|
||||
virtual int sync()
|
||||
{
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
std::lock_guard<std::mutex> lck (serializer_);
|
||||
#endif
|
||||
|
||||
@@ -214,7 +214,7 @@ protected:
|
||||
char c = traits_type::to_char_type(_c);
|
||||
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
{
|
||||
std::lock_guard<std::mutex> lck (serializer_);
|
||||
buffer_.push_back(c);
|
||||
@@ -264,7 +264,7 @@ private:
|
||||
bool enabled_;
|
||||
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
std::mutex serializer_;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ public:
|
||||
* In C++11 an beyond we can introduce more efficient and more legible
|
||||
* implementations of the following methods.
|
||||
*/
|
||||
#if (_MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
#if ((defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)) && !defined(OPENMESH_VECTOR_LEGACY)
|
||||
/**
|
||||
* Reserves space for \p _n elements in all property vectors.
|
||||
*/
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace OpenMesh {
|
||||
*/
|
||||
template<typename PROPTYPE, typename MeshT>
|
||||
class PropertyManager {
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
public:
|
||||
PropertyManager(const PropertyManager&) = delete;
|
||||
PropertyManager& operator=(const PropertyManager&) = delete;
|
||||
@@ -167,7 +167,7 @@ class PropertyManager {
|
||||
|
||||
MeshT &getMesh() const { return *mesh_; }
|
||||
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
/// Only for pre C++11 compatibility.
|
||||
|
||||
typedef PropertyManager<PROPTYPE, MeshT> Proxy;
|
||||
|
||||
Reference in New Issue
Block a user