summaryrefslogtreecommitdiff
path: root/lib/libc/gdtoa
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gdtoa')
-rw-r--r--lib/libc/gdtoa/gdtoa.h2
-rw-r--r--lib/libc/gdtoa/gdtoaimp.h5
-rw-r--r--lib/libc/gdtoa/strtod.c2
-rw-r--r--lib/libc/gdtoa/strtof.c1
-rw-r--r--lib/libc/gdtoa/strtold.c3
5 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/gdtoa/gdtoa.h b/lib/libc/gdtoa/gdtoa.h
index 9e1cea07cfd..a883194012a 100644
--- a/lib/libc/gdtoa/gdtoa.h
+++ b/lib/libc/gdtoa/gdtoa.h
@@ -113,6 +113,7 @@ extern float strtof ANSI((CONST char *, char **));
extern double strtod ANSI((CONST char *, char **));
extern int __strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*));
+__BEGIN_HIDDEN_DECLS
extern char* __g_ddfmt ANSI((char*, double*, int, size_t));
extern char* __g_dfmt ANSI((char*, double*, int, size_t));
extern char* __g_ffmt ANSI((char*, float*, int, size_t));
@@ -148,6 +149,7 @@ extern int __strtopxL ANSI((CONST char*, char**, void*));
#define __strtopx(s,se,x) strtorx(s,se,1,x)
#define __strtopxL(s,se,x) strtorxL(s,se,1,x)
#endif
+__END_HIDDEN_DECLS
#ifdef __cplusplus
}
diff --git a/lib/libc/gdtoa/gdtoaimp.h b/lib/libc/gdtoa/gdtoaimp.h
index 8823aa8f197..823f2a9b113 100644
--- a/lib/libc/gdtoa/gdtoaimp.h
+++ b/lib/libc/gdtoa/gdtoaimp.h
@@ -566,6 +566,7 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t));
#define trailz __trailz_D2A
#define ulp __ulp_D2A
+__BEGIN_HIDDEN_DECLS
extern char *dtoa_result;
extern CONST double bigtens[], tens[], tinytens[];
extern unsigned char hexdig[];
@@ -585,8 +586,6 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t));
extern Bigint *d2b ANSI((double, int*, int*));
extern void decrement ANSI((Bigint*));
extern Bigint *diff ANSI((Bigint*, Bigint*));
- extern char *dtoa ANSI((double d, int mode, int ndigits,
- int *decpt, int *sign, char **rve));
extern char *g__fmt ANSI((char*, char*, char*, int, ULong, size_t));
extern int gethex ANSI((CONST char**, FPI*, Long*, Bigint**, int));
extern void __hexdig_init_D2A(Void);
@@ -609,10 +608,10 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t));
extern Bigint *set_ones ANSI((Bigint*, int));
extern char *strcp ANSI((char*, const char*));
extern int strtoIg ANSI((CONST char*, char**, FPI*, Long*, Bigint**, int*));
- extern double strtod ANSI((const char *s00, char **se));
extern Bigint *sum ANSI((Bigint*, Bigint*));
extern int trailz ANSI((Bigint*));
extern double ulp ANSI((U*));
+__END_HIDDEN_DECLS
#ifdef __cplusplus
}
diff --git a/lib/libc/gdtoa/strtod.c b/lib/libc/gdtoa/strtod.c
index ded47d86248..ac2283c6249 100644
--- a/lib/libc/gdtoa/strtod.c
+++ b/lib/libc/gdtoa/strtod.c
@@ -1102,4 +1102,4 @@ strtod
*se = (char *)s;
return sign ? -dval(&rv) : dval(&rv);
}
-
+DEF_STRONG(strtod);
diff --git a/lib/libc/gdtoa/strtof.c b/lib/libc/gdtoa/strtof.c
index 224491b50f3..914e2182a92 100644
--- a/lib/libc/gdtoa/strtof.c
+++ b/lib/libc/gdtoa/strtof.c
@@ -79,3 +79,4 @@ strtof(CONST char *s, char **sp)
u.L[0] |= 0x80000000L;
return u.f;
}
+DEF_STRONG(strtof);
diff --git a/lib/libc/gdtoa/strtold.c b/lib/libc/gdtoa/strtold.c
index 0de6d88c008..7df15c0e66b 100644
--- a/lib/libc/gdtoa/strtold.c
+++ b/lib/libc/gdtoa/strtold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtold.c,v 1.1 2008/09/07 20:36:08 martynas Exp $ */
+/* $OpenBSD: strtold.c,v 1.2 2015/09/13 08:31:47 guenther Exp $ */
/*-
* Copyright (c) 2003 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -38,3 +38,4 @@ strtold(const char * __restrict s, char ** __restrict sp)
{
return strtod(s, sp);
}
+DEF_STRONG(strtold);