From 2907f7d65219f93420cb2f9ec304408994f30857 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 19 Mar 2011 22:11:33 +0000 Subject: SWORD25: Fix MSVC Compilation. --- engines/sword25/util/lua/lmathlib.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') 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 +// 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 #define lmathlib_c -- cgit v1.2.3