diff options
author | N.N. <matju@users.sourceforge.net> | 2009-04-27 19:07:38 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-04-27 19:07:38 +0000 |
commit | 6b0c8056b027c18b3f9504da1237b4ff50cdbb34 (patch) | |
tree | 35403c8e7df2e60830272c8b994ea8ebd1419551 | |
parent | 1d3e4b2335d85d72158365cd57cd22f304b2a70a (diff) |
#define in .c instead of .h (from Patrice Colet)
svn path=/trunk/; revision=11170
-rw-r--r-- | desiredata/src/desire.h | 2 | ||||
-rw-r--r-- | 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 <stdio.h> #include <errno.h> #include <limits.h> |