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 /src | |
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 'src')
-rw-r--r-- | src/H5private.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index 9f2796d..db705e0 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1030,9 +1030,12 @@ typedef off_t h5_stat_size_t; #ifndef HDgetrusage #define HDgetrusage(X,S) getrusage(X,S) #endif /* HDgetrusage */ -#ifndef HDgets - #define HDgets(S) gets(S) + +/* Don't define HDgets - gets() was deprecated in C99 and removed in C11 */ +#ifdef HDgets + #undef HDgets #endif /* HDgets */ + #ifndef HDgettimeofday #define HDgettimeofday(S,P) gettimeofday(S,P) #endif /* HDgettimeofday */ |