aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desiredata/src/desire.h2
-rw-r--r--desiredata/src/kernel.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/desiredata/src/desire.h b/desiredata/src/desire.h
index 26645061..8dc4cac4 100644
--- a/desiredata/src/desire.h
+++ b/desiredata/src/desire.h
@@ -54,12 +54,10 @@ extern "C" {
/* ----------------------- (v)asprintf missing on mingw... ---------------------------------------------------*/
#ifndef HAVE_VASPRINTF
-#define HAVE_VASPRINTF
extern int vasprintf(char **str, const char *fmt, va_list ap);
#endif
#ifndef HAVE_ASPRINTF
-#define HAVE_ASPRINTF
extern int asprintf(char **str, const char *fmt, ...);
#endif
diff --git a/desiredata/src/kernel.c b/desiredata/src/kernel.c
index f7ccc246..19e5b223 100644
--- a/desiredata/src/kernel.c
+++ b/desiredata/src/kernel.c
@@ -2349,6 +2349,7 @@ void pd_init() {
};
#ifndef HAVE_ASPRINTF
+#define HAVE_ASPRINTF
int asprintf(char **str, const char *fmt, ...)
{
va_list ap;
@@ -2362,6 +2363,7 @@ int asprintf(char **str, const char *fmt, ...)
}
#endif /* HAVE_ASPRINTF */
#ifndef HAVE_VASPRINTF
+#define HAVE_VASPRINTF
#include <stdio.h>
#include <errno.h>
#include <limits.h>