summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1998-09-20 00:58:30 +0000
committerwtc%netscape.com <devnull@localhost>1998-09-20 00:58:30 +0000
commit4b331c68e3a824ba7e4e4f12b8d07af26241cc83 (patch)
tree0ab25666fc9b62126020b385418908b8dbba96ec
parentcedcb98bce082a447274514213bfd3a8b866db6d (diff)
downloadnss-hg-4b331c68e3a824ba7e4e4f12b8d07af26241cc83.tar.gz
Compile this file only if HAVE_SNPRINTF is not defined so that wePROGRESS_19980920_BASE
won't accidentally override the system's snprintf and vsnprintf functions. This patch is contributed by Soren Juul Moller <sjm@nwc.dk>.
-rw-r--r--dbm/src/snprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbm/src/snprintf.c b/dbm/src/snprintf.c
index 451a17a66..57ebfbfdd 100644
--- a/dbm/src/snprintf.c
+++ b/dbm/src/snprintf.c
@@ -1,3 +1,5 @@
+#ifndef HAVE_SNPRINTF
+
#include "watcomfx.h"
#include <sys/types.h>
#include <stddef.h>
@@ -64,3 +66,5 @@ vsnprintf(str, n, fmt, ap)
return (vsprintf(str, fmt, ap));
#endif
}
+
+#endif /* HAVE_SNPRINTF */