Added a portable snprintf implementenation in case it's not present.
This commit is contained in:
+3
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user