diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:49:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:49:57 +0300 |
commit | 6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f (patch) | |
tree | 9a2862cc11be4832f188cfbdce175120ceba5024 /vms/redirect.h | |
parent | 315bd501ca696bc3e3c938b4604d8dac7a6f512f (diff) | |
download | egawk-6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f.tar.gz egawk-6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f.tar.bz2 egawk-6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f.zip |
Move to gawk-3.1.6.
Diffstat (limited to 'vms/redirect.h')
-rw-r--r-- | vms/redirect.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vms/redirect.h b/vms/redirect.h index a0de1729..943af981 100644 --- a/vms/redirect.h +++ b/vms/redirect.h @@ -3,14 +3,15 @@ */ /* - * Copyright (C) 1986, 88, 89, 91-93, 1996, 1997 the Free Software Foundation, Inc. + * Copyright (C) 1986, 88, 89, 91-93, 1996, 1997, 2007 + * the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * GAWK is distributed in the hope that it will be useful, @@ -82,6 +83,15 @@ extern int gettimeofday(struct timeval *,void *); #define open vms_open #define popen vms_popen #define pclose vms_pclose +#ifndef HAVE_SNPRINTF +#define snprintf gawk_snprintf /* avoid %CC-I-INTRINSICDECL diagnostic */ +#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> */ +int snprintf(char *,size_t,const char *,...); +#endif +#endif #define strerror vms_strerror #define strdup vms_strdup #define unlink vms_unlink |