summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/c-std.h
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/source/texk/kpathsea/c-std.h
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/source/texk/kpathsea/c-std.h')
-rw-r--r--Build/source/texk/kpathsea/c-std.h4
1 files changed, 4 insertions, 0 deletions
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>