Added a portable snprintf implementenation in case it's not present.

This commit is contained in:
gfk
2002-05-11 18:19:39 +00:00
parent a8143ad039
commit 40706764dd
5 changed files with 1060 additions and 7 deletions
+3 -5
View File
@@ -1,6 +1,9 @@
#ifndef DEBUG_H
#define DEBUG_H
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -21,11 +24,6 @@ This way, the global DEBUG macro is off but is locally enabled in
certains parts of the software.
*/
#ifdef DEBUG
#include <stdarg.h>
#include <stdio.h>
#endif
static inline void debug(const char *format, .../*args*/) {
#ifdef DEBUG
va_list ap;