diff options
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/c-std.h | 4 |
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> |