winnt-redefine-snprintf-instead-of-building-one-20010429
authorDerrick Brashear <shadow@dementia.org>
Mon, 30 Apr 2001 00:40:12 +0000 (00:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 30 Apr 2001 00:40:12 +0000 (00:40 +0000)
WINNT has _snprintf, just use that

src/config/param.i386_nt40.h
src/util/snprintf.c

index 9b11a9d..5ca03c8 100644 (file)
@@ -56,4 +56,6 @@ typedef int ssize_t;
 typedef char * caddr_t;
 
 #define pipe(fdp)               _pipe(fdp, 4096, _O_BINARY)
+
+#define snprintf                _snprintf
 #endif /* _PARAM_NT35_H_ */
index 0b716f2..9c12c35 100644 (file)
@@ -1,7 +1,7 @@
 /* snprintf.c - Formatted, length-limited print to a string */
 
 #include <afs/param.h>
-#if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV) || defined(AFS_NT40_ENV)
+#if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV)
 #include <sys/types.h>
 #include <stdarg.h>
 #include <stdio.h>