From fe92db2c0e3ae41fb2ec70fd1dc74c1d06109f6f Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Thu, 9 Aug 2012 02:00:22 +0000 Subject: Add 'extern "C" {' to avoid link error git-svn-id: svn://tug.org/texlive/trunk@27349 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontMgr.cpp') 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 +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) { -- cgit v1.2.3