diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-03-24 21:06:53 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-03-24 21:06:53 +0000 |
commit | 1e04b4be7d0e587e6b68907a12ed530f1006aae4 (patch) | |
tree | 8adafbf29e0abf1858e4f0e76168620d31eb9610 /src/util/snprintf.c | |
parent | 088ddf2435e2abae2ad7083ce6047a3b83fe3a05 (diff) |
Rename pow10 to mypow10 because pow10 is defined on some systems in <math.h>
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4018 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/snprintf.c')
-rw-r--r-- | src/util/snprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/snprintf.c b/src/util/snprintf.c index 61390c9c..9ee9b8fe 100644 --- a/src/util/snprintf.c +++ b/src/util/snprintf.c @@ -573,7 +573,7 @@ static LDOUBLE abs_val (LDOUBLE value) return result; } -static LDOUBLE pow10 (int exp) +static LDOUBLE mypow10 (int exp) { LDOUBLE result = 1; @@ -680,12 +680,12 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen, /* We "cheat" by converting the fractional part to integer by * multiplying by a factor of 10 */ - fracpart = myround ((pow10 (max)) * (ufvalue - intpart)); + fracpart = myround ((mypow10 (max)) * (ufvalue - intpart)); - if (fracpart >= pow10 (max)) + if (fracpart >= mypow10 (max)) { intpart++; - fracpart -= pow10 (max); + fracpart -= mypow10 (max); } #ifdef DEBUG_SNPRINTF |