math.h/PI integration

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-12-13 19:54:38 +00:00
parent 699bfc3d1a
commit 19edb09cd9
3 changed files with 8 additions and 5 deletions

View File

@@ -31,6 +31,7 @@
#include "wx/palette.h" #include "wx/palette.h"
#include "wx/list.h" // we use wxList in inline functions #include "wx/list.h" // we use wxList in inline functions
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/math.h"
class WXDLLEXPORT wxDC; class WXDLLEXPORT wxDC;
class WXDLLEXPORT wxDCBase; class WXDLLEXPORT wxDCBase;

View File

@@ -18,15 +18,11 @@
#include "wx/defs.h" #include "wx/defs.h"
#ifndef wxUSE_GEOMETRY
#define wxUSE_GEOMETRY 0
#endif
#if wxUSE_GEOMETRY #if wxUSE_GEOMETRY
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include <math.h> #include "wx/math.h"
#ifdef __WXMSW__ #ifdef __WXMSW__
#define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c ) #define wxMulDivInt32( a , b , c ) ::MulDiv( a , b , c )

View File

@@ -18,6 +18,12 @@
#include "wx/defs.h" #include "wx/defs.h"
#include <math.h>
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
// unknown __VISAGECC__, __SYMANTECCC__ // unknown __VISAGECC__, __SYMANTECCC__
#if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__) #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)