summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-28 10:50:20 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-28 10:50:20 -0700
commit304b60556397464143c6fc24edb856b03fc9781a (patch)
tree230a24f6dc769b2e54088cebe34db0a7829bf681 /nasmlib.c
parentbb2018587b4e14a170a648d08dcdd74dc995d8ce (diff)
downloadnasm-304b60556397464143c6fc24edb856b03fc9781a.tar.gz
nasm-304b60556397464143c6fc24edb856b03fc9781a.tar.bz2
nasm-304b60556397464143c6fc24edb856b03fc9781a.zip
Add substitutes for snprintf() and vsnprintf()
To deal with fools^Wpeople trying to keep really old systems alive, create a proper framework for substitution functions, and make it possible to deal with the lack of snprintf/vsnprintf in particular.
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 0feb3ed..6f0e6af 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -17,7 +17,7 @@
#include "insns.h"
int globalbits = 0; /* defined in nasm.h, works better here for ASM+DISASM */
-static efunc nasm_malloc_error;
+efunc nasm_malloc_error; /* Exported for the benefit of vsnprintf.c */
#ifdef LOGALLOC
static FILE *logfp;