Mingw doesnt define PI. This fixes building a few dlls. Note all of the patches I send of Capsers are LGPL. Changelog: Casper Hornstrup <chorns@users.sourceforge.net> Define constants of M_PI & M_PI_2 when building on for Win32 with GNUC Index: include/wine/port.h =================================================================== RCS file: /home/wine/wine/include/wine/port.h,v retrieving revision 1.38 diff -u -p -u -r1.38 port.h --- include/wine/port.h 20 Apr 2003 02:56:14 -0000 1.38 +++ include/wine/port.h 9 Jul 2003 19:14:16 -0000 @@ -116,6 +116,20 @@ struct statfs; # define O_LARGEFILE 0 #endif + +/**************************************************************** + * Constants + */ + +#if defined(WIN32) && defined(__GNUC__) && !defined(M_PI) +#define M_PI 3.14159265358979323846 +#endif + +#if defined(WIN32) && defined(__GNUC__) && !defined(M_PI_2) +#define M_PI_2 1.570796326794896619 +#endif + + /* Macros to define assembler functions somewhat portably */ #ifdef __GNUC__ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com