diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-03-24 02:13:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 02:13:57 (GMT) |
commit | 1f3f7fe3aedf3d207d7bfa1b2870e87278378ad8 (patch) | |
tree | ff48216a6dce48120aa65326316746f919b60c76 /src/H5system.c | |
parent | 69f3cde9365a1190f624586e7e9736b7b4df55f1 (diff) | |
download | hdf5-1f3f7fe3aedf3d207d7bfa1b2870e87278378ad8.zip hdf5-1f3f7fe3aedf3d207d7bfa1b2870e87278378ad8.tar.gz hdf5-1f3f7fe3aedf3d207d7bfa1b2870e87278378ad8.tar.bz2 |
Removes support for pre-2015 Visual Studio (#496)
* Committing clang-format changes
* Removes work-around code for pre-2015 Visual Studio
HDF5 no longer provides an implementation for:
* <inttypes.h>
* snprintf and vsnprintf
* llround(f), lround(f), round(f)
* strtoll and strtoull
* va_copy
* struct timespec
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5system.c')
-rw-r--r-- | src/H5system.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/H5system.c b/src/H5system.c index 745476d..caf2fc3 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -581,32 +581,6 @@ Wgetlogin(void) return NULL; } -int -c99_snprintf(char *str, size_t size, const char *format, ...) -{ - int count; - va_list ap; - - HDva_start(ap, format); - count = c99_vsnprintf(str, size, format, ap); - HDva_end(ap); - - return count; -} - -int -c99_vsnprintf(char *str, size_t size, const char *format, va_list ap) -{ - int count = -1; - - if (size != 0) - count = _vsnprintf_s(str, size, _TRUNCATE, format, ap); - if (count == -1) - count = _vscprintf(format, ap); - - return count; -} - /*------------------------------------------------------------------------- * Function: Wflock * @@ -659,55 +633,6 @@ Wflock(int fd, int operation) } /* end Wflock() */ /*------------------------------------------------------------------------- - * Function: Wllround, Wllroundf, Wlround, Wlroundf, Wround, Wroundf - * - * Purpose: Wrapper function for round functions for use with VS2012 - * and earlier. - * - * Return: The rounded value that was passed in. - * - * Programmer: Dana Robinson - * December 2016 - * - *------------------------------------------------------------------------- - */ -long long -Wllround(double arg) -{ - return (long long)(arg < 0.0 ? HDceil(arg - 0.5) : HDfloor(arg + 0.5)); -} - -long long -Wllroundf(float arg) -{ - return (long long)(arg < 0.0F ? HDceil(arg - 0.5F) : HDfloor(arg + 0.5F)); -} - -long -Wlround(double arg) -{ - return (long)(arg < 0.0 ? HDceil(arg - 0.5) : HDfloor(arg + 0.5)); -} - -long -Wlroundf(float arg) -{ - return (long)(arg < 0.0F ? HDceil(arg - 0.5F) : HDfloor(arg + 0.5F)); -} - -double -Wround(double arg) -{ - return arg < 0.0 ? HDceil(arg - 0.5) : HDfloor(arg + 0.5); -} - -float -Wroundf(float arg) -{ - return (float)(arg < 0.0F ? HDceil(arg - 0.5F) : HDfloor(arg + 0.5F)); -} - -/*------------------------------------------------------------------------- * Function: H5_get_utf16_str * * Purpose: Gets a UTF-16 string from an UTF-8 (or ASCII) string. |