summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
index 188fc01f73b..7da6829dcb2 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
+++ b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp
@@ -1,7 +1,7 @@
/****************************************************************************\
Part of the XeTeX typesetting system
copyright (c) 1994-2008 by SIL International
- copyright (c) 2009 by Jonathan Kew
+ copyright (c) 2009-2012 by Jonathan Kew
Written by Jonathan Kew
@@ -44,6 +44,10 @@ authorization from the copyright holders.
#include "sfnt.h"
#include <math.h>
+/* apparently M_PI isn't defined by <math.h> under VC++ */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
extern "C" {
extern Fixed loadedfontdesignsize;
@@ -547,12 +551,6 @@ XeTeXFontMgr::getDesignSize(XeTeXFont font)
return 10.0;
}
-#ifdef WIN32
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264
-#endif
-#endif
-
void
XeTeXFontMgr::getOpSizeRecAndStyleFlags(Font* theFont)
{