summaryrefslogtreecommitdiff
path: root/lang/smalltalk/patches/patch-snprintfv_snprintfv_format.c
blob: 5fa19646e8691372664bf3f6698446bc5cf86bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-snprintfv_snprintfv_format.c,v 1.1 2013/03/24 16:54:59 joerg Exp $

--- snprintfv/snprintfv/format.c.orig	2013-03-23 17:56:22.000000000 +0000
+++ snprintfv/snprintfv/format.c
@@ -55,7 +55,8 @@
 #   define isinfl(x) isnanl ((x) - (x))
 #  endif
 #  ifndef HAVE_MODFL
-static snv_long_double modfl (long double x, long double *exp);
+static snv_long_double my_modfl (long double x, long double *exp);
+#define modfl(x,y) my_modfl(x,y)
 #  endif
 #  ifndef HAVE_COPYSIGNL
 static snv_long_double copysignl (long double x, long double y);
@@ -1098,7 +1099,7 @@ printf_string (STREAM *stream, struct pr
 
 #if !defined NO_FLOAT_PRINTING && defined HAVE_LONG_DOUBLE
 # ifndef HAVE_MODFL
-static long double modfl (long double x, long double *exp)
+static long double my_modfl (long double x, long double *exp)
 {
   /* To compute the integer part of a positive integer (in this case
      abs(X)), sum a big enough integer to the absolute value, so that