[ghemical-devel] M_PI

Rob Schellhorn rschellhorn at xs4all.nl
Tue Aug 15 07:18:46 EDT 2006


In typedef.h PI is declared as follows:

#ifdef WIN32
#define M_PI 3.141592654
#endif  // WIN32

My windows/cygwin install gives a warning that M_PI is already defined, 
thus I changed the first line into:

#ifndef M_PI

I haven't verified whether PI has the same precision, but can you please 
look at this, because a Windows machine can have M_PI defined also.

With kind regards,
Rob Schellhorn


More information about the ghemical-devel mailing list