Pārlūkot izejas kodu

Build fix for Microsoft Visual C++

When ACTIVE_SET_CPP_DEBUG is defined, the #warning preprocessor is used which
is not supported by Microsoft Visual C++.


Former-commit-id: a5227078f04ee1cfb9f9b500029ae75357f914f2
Edward Lam 9 gadi atpakaļ
vecāks
revīzija
39d6a8014a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      include/igl/active_set.cpp

+ 1 - 1
include/igl/active_set.cpp

@@ -45,7 +45,7 @@ IGL_INLINE igl::SolverStatus igl::active_set(
   )
   )
 {
 {
 //#define ACTIVE_SET_CPP_DEBUG
 //#define ACTIVE_SET_CPP_DEBUG
-#ifdef ACTIVE_SET_CPP_DEBUG
+#if defined(ACTIVE_SET_CPP_DEBUG) && !defined(_MSC_VER)
 #  warning "ACTIVE_SET_CPP_DEBUG"
 #  warning "ACTIVE_SET_CPP_DEBUG"
 #endif
 #endif
   using namespace Eigen;
   using namespace Eigen;