From 6b0c8056b027c18b3f9504da1237b4ff50cdbb34 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 27 Apr 2009 19:07:38 +0000 Subject: #define in .c instead of .h (from Patrice Colet) svn path=/trunk/; revision=11170 --- desiredata/src/desire.h | 2 -- desiredata/src/kernel.c | 2 ++ 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 #include #include -- cgit v1.2.1