Skip to content

Commit 9443742

Browse files
authored
Merge pull request #5009 from jrklasen/fix-windows-cross-compilation
Use _WIN32 instead of _MSC_VER for _USE_MATH_DEFINES
2 parents 30a4690 + 9f65378 commit 9443742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ortools/base/mathutil.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313

1414
#include "absl/log/check.h"
15-
#if defined(_MSC_VER)
15+
#if defined(_WIN32)
1616
#define _USE_MATH_DEFINES
1717
#include <cmath>
1818
#endif

0 commit comments

Comments
 (0)