You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
diff --git a/src/builtin.c b/src/builtin.c
|
|
index bf80c7b..12db573 100644
|
|
--- a/src/builtin.c
|
|
+++ b/src/builtin.c
|
|
@@ -1,5 +1,6 @@
|
|
#define _BSD_SOURCE
|
|
#define _GNU_SOURCE
|
|
+#define _DEFAULT_SOURCE
|
|
#ifndef __sun__
|
|
# define _XOPEN_SOURCE
|
|
# define _XOPEN_SOURCE_EXTENDED 1
|
|
diff --git a/src/jv_dtoa.c b/src/jv_dtoa.c
|
|
index 33feb99..fcbd902 100644
|
|
--- a/src/jv_dtoa.c
|
|
+++ b/src/jv_dtoa.c
|
|
@@ -2327,7 +2327,7 @@ retlow1:
|
|
jvp_strtod
|
|
(struct dtoa_context* C, const char *s00, char **se)
|
|
{
|
|
- int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, e, e1, test_scale;
|
|
+ int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, e, e1;
|
|
int esign, i, j, k, nd, nd0, nf, nz, nz0, nz1, sign;
|
|
CONST char *s, *s0, *s1;
|
|
double aadj, aadj1;
|
|
diff --git a/src/jv_dtoa_tsd.c b/src/jv_dtoa_tsd.c
|
|
index 0f95df4..e5209dd 100644
|
|
--- a/src/jv_dtoa_tsd.c
|
|
+++ b/src/jv_dtoa_tsd.c
|
|
@@ -24,7 +24,7 @@ static void tsd_dtoa_ctx_fini() {
|
|
}
|
|
|
|
static void tsd_dtoa_ctx_init() {
|
|
- if (pthread_key_create(&dtoa_ctx_key, tsd_dtoa_ctx_dtor) != 0) {
|
|
+ if (pthread_key_create(&dtoa_ctx_key, (void (*)(void *))tsd_dtoa_ctx_dtor) != 0) {
|
|
fprintf(stderr, "error: cannot create thread specific key");
|
|
abort();
|
|
}
|
|
@@ -43,4 +43,4 @@ inline struct dtoa_context *tsd_dtoa_context_get() {
|
|
}
|
|
}
|
|
return ctx;
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|