From: Václav Slavík Date: Tue, 4 Dec 2001 23:43:49 +0000 (+0000) Subject: watcom headers don't define M_PI X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/619874990066fcc2a412e5570ca5fa3bde9420d0 watcom headers don't define M_PI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mgl/dc.cpp b/src/mgl/dc.cpp index 2c48b7f256..d462c90486 100644 --- a/src/mgl/dc.cpp +++ b/src/mgl/dc.cpp @@ -47,6 +47,10 @@ // constants //----------------------------------------------------------------------------- +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + const double mm2inches = 0.0393700787402; const double inches2mm = 25.4; const double mm2twips = 56.6929133859;