aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-03-19 22:11:33 +0000
committerD G Turner2011-03-19 22:11:33 +0000
commit2907f7d65219f93420cb2f9ec304408994f30857 (patch)
treec17ec0dd4905a4ad4c180296035bcacf41088c1b /engines
parent90ccc84305e85fdc079459256c442eae0d327a5a (diff)
downloadscummvm-rg350-2907f7d65219f93420cb2f9ec304408994f30857.tar.gz
scummvm-rg350-2907f7d65219f93420cb2f9ec304408994f30857.tar.bz2
scummvm-rg350-2907f7d65219f93420cb2f9ec304408994f30857.zip
SWORD25: Fix MSVC Compilation.
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/util/lua/lmathlib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sword25/util/lua/lmathlib.cpp b/engines/sword25/util/lua/lmathlib.cpp
index bb9c6ed442..7e64d75789 100644
--- a/engines/sword25/util/lua/lmathlib.cpp
+++ b/engines/sword25/util/lua/lmathlib.cpp
@@ -6,6 +6,11 @@
#include <stdlib.h>
+// MSVC does not define M_PI, M_SQRT2 and other math defines by default.
+// _USE_MATH_DEFINES must be defined in order to have these defined, thus
+// we enable it here. For more information, check:
+// http://msdn.microsoft.com/en-us/library/4hwaceh6(v=VS.100).aspx
+#define _USE_MATH_DEFINES
#include <math.h>
#define lmathlib_c