Skip to content

Commit

Permalink
Make sure _MSC_VER is defined before checking (elalish#990)
Browse files Browse the repository at this point in the history
Avoids the following:

error: "_MSC_VER" is not defined, evaluates to 0 [-Werror=undef]
   59 | #if _MSC_VER <= 1900
      |     ^~~~~~~~
  • Loading branch information
starseeker authored Oct 16, 2024
1 parent e067653 commit 6ade357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/manifold/linalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

// In Visual Studio 2015, `constexpr` applied to a member function implies
// `const`, which causes ambiguous overload resolution
#if _MSC_VER <= 1900
#if defined(_MSC_VER) && (_MSC_VER <= 1900)
#define LINALG_CONSTEXPR14
#else
#define LINALG_CONSTEXPR14 constexpr
Expand Down

0 comments on commit 6ade357

Please sign in to comment.