summaryrefslogtreecommitdiff
path: root/lib/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vsnprintf.c')
-rw-r--r--lib/vsnprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vsnprintf.c b/lib/vsnprintf.c
index ecca3e66..b8fd082a 100644
--- a/lib/vsnprintf.c
+++ b/lib/vsnprintf.c
@@ -14,6 +14,8 @@
#include "nasmlib.h"
+#if !defined(HAVE_VSNPRINTF) && !defined(HAVE__VSNPRINTF)
+
#define BUFFER_SIZE 65536 /* Bigger than any string we might print... */
static char snprintf_buffer[BUFFER_SIZE];
@@ -44,3 +46,5 @@ int vsnprintf(char *str, size_t size, const char *format, va_list ap)
return rv;
}
+
+#endif