diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-08-09 02:00:22 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-08-09 02:00:22 +0000 |
commit | fe92db2c0e3ae41fb2ec70fd1dc74c1d06109f6f (patch) | |
tree | 0630542638dccd4aa97cc334b7f2f77ea7bc26e7 /Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp | |
parent | 248922712ec202dc51b83c4adbc483b565d3b869 (diff) |
Add 'extern "C" {' to avoid link error
git-svn-id: svn://tug.org/texlive/trunk@27349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp index e02fafe41d5..188fc01f73b 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp +++ b/Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp @@ -45,7 +45,9 @@ authorization from the copyright holders. #include <math.h> +extern "C" { extern Fixed loadedfontdesignsize; +} // functions from the Pascal/WEB side extern "C" { @@ -545,6 +547,12 @@ XeTeXFontMgr::getDesignSize(XeTeXFont font) return 10.0; } +#ifdef WIN32 +#ifndef M_PI +#define M_PI 3.14159265358979323846264 +#endif +#endif + void XeTeXFontMgr::getOpSizeRecAndStyleFlags(Font* theFont) { |