From 54c2d5a6ccd3a54f22b2c0f21018a0a4d4498d20 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 28 Jun 2003 21:43:41 +0000 Subject: [PATCH] MSVC fixes --- simgear/math/fastmath.cxx | 2 +- simgear/math/fastmath.hxx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/simgear/math/fastmath.cxx b/simgear/math/fastmath.cxx index c95ccbcc..19968109 100644 --- a/simgear/math/fastmath.cxx +++ b/simgear/math/fastmath.cxx @@ -20,7 +20,7 @@ -#include +#include "fastmath.hxx" /** * This function is on avarage 9 times faster than the system exp() function diff --git a/simgear/math/fastmath.hxx b/simgear/math/fastmath.hxx index 7ce8f461..6ebecd3f 100644 --- a/simgear/math/fastmath.hxx +++ b/simgear/math/fastmath.hxx @@ -25,7 +25,9 @@ # error This library requires C++ #endif - +#ifdef _MSC_VER +#define _USE_MATH_DEFINES +#endif #include -- 2.39.5