From 069d67b24b62e5a35fd386f6dd0a184faa75862f Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 9 Nov 2011 21:34:30 -0500 Subject: [PATCH] Third try's a charm. --- sourcepawn/compiler/sc2.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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(),