diff options
-rw-r--r-- | vms/ChangeLog | 5 | ||||
-rw-r--r-- | vms/redirect.h | 10 |
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 *); |