aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-13 20:20:56 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-13 20:20:56 +0200
commit6bfbae33e99c401f89a4d650ea7958bbdebd362e (patch)
tree925013ac9f21da60b66d8f1d95f122e9f22ab445
parent29d0afc3d5b29804f94cb142d949a83d7f1fbd39 (diff)
downloadegawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.tar.gz
egawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.tar.bz2
egawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.zip
VMS snprintf fix.
-rw-r--r--vms/ChangeLog5
-rw-r--r--vms/redirect.h10
2 files changed, 8 insertions, 7 deletions
diff --git a/vms/ChangeLog b/vms/ChangeLog
index b01a0cf5..cf7b9f9e 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,8 @@
+Sat Feb 12 19:29:41 2011 Pat Rankin <rankin@pactechdata.com>
+
+ * redirect.h (snprintf): Declare regardless of HAVE_SNPRINTF or
+ CRTL_VER_V732.
+
Mon Feb 7 22:43:37 2011 Arnold Robbins <arnold@skeeve.com>
* vmstest.com (negrange): Add new test.
diff --git a/vms/redirect.h b/vms/redirect.h
index e6bd4a04..b7388c96 100644
--- a/vms/redirect.h
+++ b/vms/redirect.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991-1993, 1996, 1997, 2007, 2010
+ * Copyright (C) 1986, 1988, 1989, 1991-1993, 1996, 1997, 2007, 2010, 2011
* the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
@@ -87,13 +87,9 @@ extern int gettimeofday(struct timeval *,void *);
#ifndef HAVE_SNPRINTF
#define snprintf gawk_snprintf /* avoid %CC-I-INTRINSICDECL diagnostic */
#define vsnprintf gawk_vsnprintf
-#else
-#ifdef CRTL_VER_V732
-/* when overriding the version of the C library that compiler thinks is
- in use, we need to duplicate something being suppressed in <stdio.h> */
-extern int snprintf(char *,size_t,const char *,...);
-#endif
#endif
+/* supply missing or suppressed (due to defines in config.h) declarations */
+extern int snprintf(char *,size_t,const char *,...);
extern int vsnprintf(char *restrict,size_t,const char *,va_list);
extern int setenv(const char *,const char *,int);
extern int unsetenv(const char *);