summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-08-11 10:09:57 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-08-11 10:09:57 +0000
commitd3f1ccee73a080eb9069894375590f12633237d7 (patch)
treeeb54a535c8667c7f232f483e530f108510a879df /Build
parent2940b2a9abe23a168996e1858234a2844bdff526 (diff)
kpathsea: Define M_PI if not defined by <math.h> -- C only, not C++
git-svn-id: svn://tug.org/texlive/trunk@27368 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/c-std.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index a8a520ae19b..4236d7f5e10 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-11 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * c-std.h: Define M_PI if not defined by <math.h> (old MSVC).
+
2012-08-08 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Use ../am/bin_links.am.
diff --git a/Build/source/texk/kpathsea/c-std.h b/Build/source/texk/kpathsea/c-std.h
index b4d22a7743e..2ebacf6accd 100644
--- a/Build/source/texk/kpathsea/c-std.h
+++ b/Build/source/texk/kpathsea/c-std.h
@@ -26,6 +26,10 @@
extern "C" in a c++ source file. */
#ifndef __cplusplus
#include <math.h>
+/* apparently M_PI isn't defined by <math.h> under older VC */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
#endif
#include <stdio.h>