From 82c9788bb8a04099a0e97ad4962337a2fc8ef3eb Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Wed, 11 Jul 2018 13:30:53 -0600 Subject: [PATCH] Correcting #1057, also adding fortran tests to travis-ci for the time being. --- .travis.yml | 2 +- include/netcdf.h | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e36cc31bc..b66069deb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,4 +37,4 @@ before_install: script: - - docker run --rm -it -h "$CURHOST" -e USEDASH=FALSE -e RUNF=OFF -e RUNCXX=OFF -e RUNP=OFF -e RUNNCO=OFF -e USECMAKE=$USECMAKE -e USEAC=$USEAC -e DISTCHECK=$DISTCHECK -e COPTS="$COPTS" -e AC_OPTS="$AC_OPTS" -e CTEST_OUTPUT_ON_FAILURE=1 -v $(pwd):/netcdf-c -e USE_LOCAL_CP=$USECP -e TESTPROC=100 $DOCKIMG + - docker run --rm -it -h "$CURHOST" -e USEDASH=FALSE -e RUNF=TRUE -e RUNCXX=OFF -e RUNP=OFF -e RUNNCO=OFF -e USECMAKE=$USECMAKE -e USEAC=$USEAC -e DISTCHECK=$DISTCHECK -e COPTS="$COPTS" -e AC_OPTS="$AC_OPTS" -e CTEST_OUTPUT_ON_FAILURE=1 -v $(pwd):/netcdf-c -e USE_LOCAL_CP=$USECP -e TESTPROC=100 $DOCKIMG diff --git a/include/netcdf.h b/include/netcdf.h index f3dd3165d..6ea9829b4 100644 --- a/include/netcdf.h +++ b/include/netcdf.h @@ -512,10 +512,10 @@ EXTERNL const char * nc_strerror(int ncerr); /* Set up user-defined format. */ -typedef struct NC_Dispatch NC_Dispatch; +typedef struct NC_Dispatch NC_Dispatch; EXTERNL int nc_def_user_format(int mode_flag, NC_Dispatch *dispatch_table, char *magic_number); - + EXTERNL int nc_inq_user_format(int mode_flag, NC_Dispatch **dispatch_table, char *magic_number); @@ -1966,6 +1966,20 @@ EXTERNL int nc_finalize(); } #endif +/* Define two hard-coded functionality-related + (as requested by community developers) macros. + This is not going to be standard practice. + Don't remove without an in-place replacement of some sort, + the are now (for better or worse) used by downstream + software external to Unidata. */ +#ifndef NC_HAVE_RENAME_GRP +#define NC_HAVE_RENAME_GRP /*!< rename_grp() support. */ +#endif + +#ifndef NC_HAVE_INQ_FORMAT_EXTENDED +#define NC_HAVE_INQ_FORMAT_EXTENDED /*!< inq_format_extended() support. */ +#endif + #define NC_HAVE_META_H #endif /* _NETCDF_ */