From: Perry Miller (perry++at++modelspace.com)
Date: 07/12/2003 10:58:52
Performer developers,
Performer/pr.h has the following:
#define sinf(m) sin((float)m)
#define cosf(m) cos((float)m)
#define sqrtf(m) sqrt((float)m)
...
As well as:
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
However, none of these macros are used within pr.h. Further, including
such definitions renders pr.h unfriendly with other header files. For
example, my compiler (VC6) is now confused by the following code because
it tries to use your definition of sinf instead of the one found in
math.h.
float value = 0.2;
float num = ::sinf ( value );
How do others deal with this (besides #undef)? Any suggestions for
work-arounds appreciated.
Thanks,
Perry
---- Perry L. Miller IV, Ph.D. Virtual Reality Applications Center phone: 515-294-4974 pmiller++at++vrac.iastate.edu http://www.vrac.iastate.edu/~pmiller--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.500 / Virus Database: 298 - Release Date: 10 Jul 2003
This archive was generated by hypermail 2b29 : Sat Jul 12 2003 - 11:01:28 PDT