From c52a9bdf0d459bf7131b96d73d236c13d9e00cc7 Mon Sep 17 00:00:00 2001 From: Vasily Litvinov Date: Tue, 29 Jul 2014 13:51:33 +0400 Subject: [PATCH] Fixing Avian classpath on Windows --- classpath/java-lang.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index ae378e45d1..ecdb3ef5bd 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -79,6 +79,11 @@ #endif #endif // WINAPI_FAMILY +#ifndef M_E +// in new C++-11 standard math.h doesn't have M_E, at least on MinGW, so define it manually +#define M_E 2.7182818284590452354 +#endif // M_E + namespace { void add(JNIEnv* e, jobjectArray array, unsigned index, const char* format, ...)