]> git.saurik.com Git - wxWidgets.git/commitdiff
M_PI is not ANSI
authorGuillermo Rodriguez Garcia <guille@iies.es>
Tue, 8 Feb 2000 02:09:54 +0000 (02:09 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Tue, 8 Feb 2000 02:09:54 +0000 (02:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/rotate/rotate.cpp

index 3319489b51b14cd085db7e847358bbf1aff9bc52..4b309651bdb2f8dc6b9018a5bef0a8c79f759426 100644 (file)
 
 #include "wx/image.h"
 
 
 #include "wx/image.h"
 
+/* GRG: This is not ANSI standard, define M_PI explicitly
 #include <math.h>       // M_PI
 #include <math.h>       // M_PI
+*/
+
+#ifndef M_PI
+#define M_PI 3.1415926535897932384626433832795
+#endif
+
 
 class MyApp: public wxApp
 {
 
 class MyApp: public wxApp
 {