diff --git a/sourcepawn/compiler/sc2.c b/sourcepawn/compiler/sc2.c index a4deeb59..03293f93 100644 --- a/sourcepawn/compiler/sc2.c +++ b/sourcepawn/compiler/sc2.c @@ -59,6 +59,14 @@ static short skiplevel; /* level at which we started skipping (including nested static unsigned char term_expr[] = ""; static int listline=-1; /* "current line" for the list file */ +#if defined DARWIN +static double pow10(double d) +{ + return pow(10, d); +} +#endif + + /* pushstk & popstk * * Uses a LIFO stack to store information. The stack is used by doinclude(),