]> git.saurik.com Git - wxWidgets.git/commitdiff
math.h/PI integration
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 13 Dec 2004 19:54:38 +0000 (19:54 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 13 Dec 2004 19:54:38 +0000 (19:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h
include/wx/geometry.h
include/wx/math.h

index bb485c7acaf35fb6829eabeb13e208cddb46c75f..9ace93ce83ad38d3a2083a8bf95df4dd9b6001bb 100644 (file)
@@ -31,6 +31,7 @@
 #include "wx/palette.h"
 #include "wx/list.h"            // we use wxList in inline functions
 #include "wx/dynarray.h"
 #include "wx/palette.h"
 #include "wx/list.h"            // we use wxList in inline functions
 #include "wx/dynarray.h"
+#include "wx/math.h"
 
 class WXDLLEXPORT wxDC;
 class WXDLLEXPORT wxDCBase;
 
 class WXDLLEXPORT wxDC;
 class WXDLLEXPORT wxDCBase;
index 0b21a02f5767540ee21c90005d9d06ffe2b5f743..1d42615fa054b7cd125004b00d9b49dab797fb2c 100644 (file)
 
 #include "wx/defs.h"
 
 
 #include "wx/defs.h"
 
-#ifndef wxUSE_GEOMETRY
-    #define wxUSE_GEOMETRY 0
-#endif
-
 #if wxUSE_GEOMETRY
 
 #include "wx/utils.h"
 #include "wx/gdicmn.h"
 #if wxUSE_GEOMETRY
 
 #include "wx/utils.h"
 #include "wx/gdicmn.h"
-#include <math.h>
+#include "wx/math.h"
 
 #ifdef __WXMSW__
     #define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
 
 #ifdef __WXMSW__
     #define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )
index 93841cf6ed7bd686c900473f06f0952b1a7e991b..6babb4d48b401054fd48ae5dca9265c54ddbe3cf 100644 (file)
 
 #include "wx/defs.h"
 
 
 #include "wx/defs.h"
 
+#include <math.h>
+
+#ifndef M_PI
+    #define M_PI 3.1415926535897932384626433832795
+#endif
+
 // unknown __VISAGECC__, __SYMANTECCC__
 
 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
 // unknown __VISAGECC__, __SYMANTECCC__
 
 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)