[Scummvm-cvs-logs] scummvm master -> 2907f7d65219f93420cb2f9ec304408994f30857

digitall digitall at scummvm.org
Sat Mar 19 23:14:44 CET 2011

This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

2907f7d652 SWORD25: Fix MSVC Compilation.

Commit: 2907f7d65219f93420cb2f9ec304408994f30857
Author: D G Turner (digitall at scummvm.org)
Date: 2011-03-19T15:11:33-07:00

Commit Message:
SWORD25: Fix MSVC Compilation.

Changed paths:

diff --git a/engines/sword25/util/lua/lmathlib.cpp b/engines/sword25/util/lua/lmathlib.cpp
index bb9c6ed..7e64d75 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
 #include <math.h>
 #define lmathlib_c

More information about the Scummvm-git-logs mailing list