diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-05-10 10:33:54 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:37:20 (GMT) |
commit | ef51913e29fc1c6f4d46ef6f96963eb5bd674809 (patch) | |
tree | 08dfe9610852923d94a6ed6823c2c3d8505b1870 /tools | |
parent | a809ab0285bfaa5379722384353b7d609f0a11c5 (diff) | |
download | hdf5-ef51913e29fc1c6f4d46ef6f96963eb5bd674809.zip hdf5-ef51913e29fc1c6f4d46ef6f96963eb5bd674809.tar.gz hdf5-ef51913e29fc1c6f4d46ef6f96963eb5bd674809.tar.bz2 |
Removed HDgets macros since gets was deprecated in C99 and removed
in C11 (gets() is not used in our repo).
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test/perform/pio_standalone.h | 2 | ||||
-rw-r--r-- | tools/test/perform/sio_standalone.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/test/perform/pio_standalone.h b/tools/test/perform/pio_standalone.h index cf6d980..f2cda4f 100644 --- a/tools/test/perform/pio_standalone.h +++ b/tools/test/perform/pio_standalone.h @@ -213,7 +213,7 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #define HDgetpwnam(S) getpwnam(S) #define HDgetpwuid(U) getpwuid(U) #define HDgetrusage(X,S) getrusage(X,S) -#define HDgets(S) gets(S) +/* Don't define a macro for gets() - it was removed in C11 */ #ifdef H5_HAVE_WIN32_API H5_DLL int Wgettimeofday(struct timeval *tv, struct timezone *tz); #define HDgettimeofday(V,Z) Wgettimeofday(V,Z) diff --git a/tools/test/perform/sio_standalone.h b/tools/test/perform/sio_standalone.h index 45f6d25..99e13bc 100644 --- a/tools/test/perform/sio_standalone.h +++ b/tools/test/perform/sio_standalone.h @@ -228,7 +228,7 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #define HDgetpwnam(S) getpwnam(S) #define HDgetpwuid(U) getpwuid(U) #define HDgetrusage(X,S) getrusage(X,S) -#define HDgets(S) gets(S) +/* Don't define a macro for gets() - it was removed in C11 */ #ifdef H5_HAVE_WIN32_API H5_DLL int Wgettimeofday(struct timeval *tv, struct timezone *tz); #define HDgettimeofday(V,Z) Wgettimeofday(V,Z) |