guarded M_PI declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,8 +46,10 @@ IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
|||||||
#define mm2pt 2.83464566929
|
#define mm2pt 2.83464566929
|
||||||
#define pt2mm 0.352777777778
|
#define pt2mm 0.352777777778
|
||||||
#if !defined( __DARWIN__ ) || defined(__MWERKS__)
|
#if !defined( __DARWIN__ ) || defined(__MWERKS__)
|
||||||
|
#ifndef M_PI
|
||||||
const double M_PI = 3.14159265358979 ;
|
const double M_PI = 3.14159265358979 ;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
const double RAD2DEG = 180.0 / M_PI;
|
const double RAD2DEG = 180.0 / M_PI;
|
||||||
const short kEmulatedMode = -1 ;
|
const short kEmulatedMode = -1 ;
|
||||||
const short kUnsupportedMode = -2 ;
|
const short kUnsupportedMode = -2 ;
|
||||||
|
@@ -46,8 +46,10 @@ IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
|
|||||||
#define mm2pt 2.83464566929
|
#define mm2pt 2.83464566929
|
||||||
#define pt2mm 0.352777777778
|
#define pt2mm 0.352777777778
|
||||||
#if !defined( __DARWIN__ ) || defined(__MWERKS__)
|
#if !defined( __DARWIN__ ) || defined(__MWERKS__)
|
||||||
|
#ifndef M_PI
|
||||||
const double M_PI = 3.14159265358979 ;
|
const double M_PI = 3.14159265358979 ;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
const double RAD2DEG = 180.0 / M_PI;
|
const double RAD2DEG = 180.0 / M_PI;
|
||||||
const short kEmulatedMode = -1 ;
|
const short kEmulatedMode = -1 ;
|
||||||
const short kUnsupportedMode = -2 ;
|
const short kUnsupportedMode = -2 ;
|
||||||
|
Reference in New Issue
Block a user