diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-06-21 16:09:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 16:09:13 (GMT) |
commit | 22a49ec424cb7a232d03d062c4141903ed6937d0 (patch) | |
tree | b956b61c0dc36983062825efe5dc67670c2f8df2 /config/cmake_ext_mod/HDFTests.c | |
parent | a91c626c29dd18dbb23f0533a940b153dd4cad33 (diff) | |
download | hdf5-22a49ec424cb7a232d03d062c4141903ed6937d0.zip hdf5-22a49ec424cb7a232d03d062c4141903ed6937d0.tar.gz hdf5-22a49ec424cb7a232d03d062c4141903ed6937d0.tar.bz2 |
Removes checks for (v)snprintf, which are C99 (#772)
Diffstat (limited to 'config/cmake_ext_mod/HDFTests.c')
-rw-r--r-- | config/cmake_ext_mod/HDFTests.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/config/cmake_ext_mod/HDFTests.c b/config/cmake_ext_mod/HDFTests.c index 0c3b7b7..b8a6af1 100644 --- a/config/cmake_ext_mod/HDFTests.c +++ b/config/cmake_ext_mod/HDFTests.c @@ -64,31 +64,6 @@ main () #endif -#ifdef VSNPRINTF_WORKS -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> - -int test_vsnprintf(const char *fmt,...) -{ - va_list ap; - char *s = malloc(16); - int ret; - - va_start(ap, fmt); - ret=vsnprintf(s,16,"%s",ap); - va_end(ap); - - return(ret!=42 ? 1 : 0); -} - -int main(void) -{ - return(test_vsnprintf("%s","A string that is longer than 16 characters")); -} -#endif - - #ifdef HAVE_ATTRIBUTE #if 0 |