diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:20:56 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:20:56 +0200 |
commit | 6bfbae33e99c401f89a4d650ea7958bbdebd362e (patch) | |
tree | 925013ac9f21da60b66d8f1d95f122e9f22ab445 /vms/redirect.h | |
parent | 29d0afc3d5b29804f94cb142d949a83d7f1fbd39 (diff) | |
download | egawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.tar.gz egawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.tar.bz2 egawk-6bfbae33e99c401f89a4d650ea7958bbdebd362e.zip |
VMS snprintf fix.
Diffstat (limited to 'vms/redirect.h')
-rw-r--r-- | vms/redirect.h | 10 |
1 files changed, 3 insertions, 7 deletions
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 *); |