Skip to content

Commit

Permalink
Merge branch 'install.dmh' of https://github.com/DennisHeimbigner/net…
Browse files Browse the repository at this point in the history
…cdf-c into install_dmh.wif
  • Loading branch information
WardF committed May 31, 2022
2 parents 6d00a7e + bbe0b21 commit 4ef91fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ AC_MSG_RESULT([${have_bz2}])

if test "x$have_bz2" = "xno" ; then
have_local_bz2=yes
AC_MSG_NOTICE([Defaulting to internal libbz2])
else
have_local_bz2=no
fi
Expand Down
1 change: 1 addition & 0 deletions libnczarr/zfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ NCZ_filter_build(const NC_FILE_INFO_T* file, NC_VAR_INFO_T* var, const NCjson* j
/* Find the plugin for this filter */
for(i=0;i<=loaded_plugins_max;i++) {
if (!loaded_plugins[i]) continue;
if(!loaded_plugins[i] || !loaded_plugins[i]->codec.codec) continue; /* no plugin or no codec */
if(strcmp(NCJstring(jvalue), loaded_plugins[i]->codec.codec->codecid) == 0)
{plugin = loaded_plugins[i]; break;}
}
Expand Down
3 changes: 3 additions & 0 deletions ncdump/ncvalidator.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ THIS SOFTWARE.
*/

#include "config.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h> /* open() */
Expand Down
6 changes: 0 additions & 6 deletions plugins/NCZstdfilters.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ Author: Dennis Heimbigner

/* Forward */

#ifdef HAVE_BZ2
static int NCZ_bzip2_codec_to_hdf5(const char* codec, size_t* nparamsp, unsigned** paramsp);
static int NCZ_bzip2_hdf5_to_codec(size_t nparams, const unsigned* params, char** codecp);
#endif

#ifdef HAVE_ZSTD
static int NCZ_zstd_codec_to_hdf5(const char* codec, size_t* nparamsp, unsigned** paramsp);
Expand All @@ -58,7 +56,6 @@ static void NCZ_blosc_codec_finalize(void);
/**************************************************/
/* Provide the codec support for bzip2 filter */

#ifdef HAVE_BZ2
static NCZ_codec_t NCZ_bzip2_codec = {/* NCZ_codec_t codec fields */
NCZ_CODEC_CLASS_VER, /* Struct version number */
NCZ_CODEC_HDF5, /* Struct sort */
Expand Down Expand Up @@ -139,7 +136,6 @@ NCZ_bzip2_hdf5_to_codec(size_t nparams, const unsigned* params, char** codecp)
done:
return stat;
}
#endif

/**************************************************/
/* Provide the codec support for zstandard filter */
Expand Down Expand Up @@ -438,9 +434,7 @@ NCZ_blosc_hdf5_to_codec(size_t nparams, const unsigned* params, char** codecp)
/**************************************************/

NCZ_codec_t* NCZ_stdfilters_codecs[] = {
#ifdef HAVE_BZ2
&NCZ_bzip2_codec,
#endif
#ifdef HAVE_ZSTD
&NCZ_zstd_codec,
#endif
Expand Down

0 comments on commit 4ef91fd

Please sign in to comment.