From fa1993cce56b3fbda1d30bcf61e78ac2014ebccd Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Tue, 8 Feb 2000 02:09:54 +0000 Subject: [PATCH] M_PI is not ANSI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/rotate/rotate.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/rotate/rotate.cpp b/samples/rotate/rotate.cpp index 3319489b51..4b309651bd 100644 --- a/samples/rotate/rotate.cpp +++ b/samples/rotate/rotate.cpp @@ -22,7 +22,14 @@ #include "wx/image.h" +/* GRG: This is not ANSI standard, define M_PI explicitly #include // M_PI +*/ + +#ifndef M_PI +#define M_PI 3.1415926535897932384626433832795 +#endif + class MyApp: public wxApp { -- 2.45.2