
5 Sep
2006
5 Sep
'06
12:53 p.m.
Frank Strauß wrote:
Andrew Hood wrote:
Would you mind renaming the function
static int pow( int base, unsigned int exponent )
to something that does not name clash with math.h and libm which have
double pow(double x, double y);
I changed it to SMIpow to shut up the compiler. You make have some other preference.
Ok. I changed the function name to be smiPow() and commited the change to the SVN repository.
Just curious: On which platform did your include chain reveal this conflict?
Cross compiling for win32 on Linux (i386-mingw32msvc). It wasn't a fatal error, but never push your luck. :)
I do have both Cygwin and MSVC7 on Windows XP, but I'd rather not have all the resultant dll dependencies.
--
There's no point in being grown up if you can't be childish sometimes.
-- Dr. Who