diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2004-11-01 02:08:46 +0000 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2004-11-01 02:08:46 +0000 |
commit | a1c260ab82d07c42b9b1826b351b993f19c158c8 (patch) | |
tree | c27ded8583ebe5c5c54daeb621d886005176be92 /net-p2p/dclib/files | |
parent | - add USE_GCC=3.3 when default gcc is 3.4 (diff) |
Update to version 0.3.3
Diffstat (limited to 'net-p2p/dclib/files')
-rw-r--r-- | net-p2p/dclib/files/patch-dclib.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-p2p/dclib/files/patch-dclib.h b/net-p2p/dclib/files/patch-dclib.h new file mode 100644 index 000000000000..4160151acbae --- /dev/null +++ b/net-p2p/dclib/files/patch-dclib.h @@ -0,0 +1,38 @@ +--- dclib/dclib.h.orig Wed Sep 1 14:07:10 2004 ++++ dclib/dclib.h Wed Sep 1 14:07:18 2004 +@@ -24,6 +24,9 @@ + + #include <time.h> + ++#include <stdarg.h> ++#include <stdio.h> ++ + #ifdef __cplusplus + extern "C" { + #endif +@@ -39,7 +42,25 @@ + /** set dclib verbose */ + DLL_EXPORT void setdclibVerbose( int n ); + ++#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L + #define DPRINTF(...) if (dclibVerbose()) printf(__VA_ARGS__) ++#elif defined __GNUC__ ++#define DPRINTF(args...) if (dclibVerbose()) printf(args) ++#else ++static int ++DPRINTF(const char *format, ++ ...) ++{ ++ int ret = 0; ++ if (dclibVerbose()) { ++ va_list args; ++ va_start (args, format); ++ ret = printf(format, args); ++ va_end (args); ++ } ++ return ret; ++} ++#endif + + #ifdef __cplusplus + } |