From 7e2aad665059343175c6d82414cfb113c3074ebd Mon Sep 17 00:00:00 2001
From: Dennis Heimbigner <dennis.heimbigner@gmail.com>
Date: Sun, 8 Sep 2024 14:13:21 -0600
Subject: [PATCH] const1

---
 libhdf5/hdf5plugins.c | 2 +-
 libnczarr/zplugins.c  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libhdf5/hdf5plugins.c b/libhdf5/hdf5plugins.c
index 7e603b3ffb..0bf78b94a4 100644
--- a/libhdf5/hdf5plugins.c
+++ b/libhdf5/hdf5plugins.c
@@ -38,7 +38,7 @@ static int NC4_hdf5_plugin_path_write(void* state, size_t ndirs, char** const di
 /**************************************************/
 /* The HDF5 Plugin Path Dispatch table and functions */
 
-const NC_PluginPathDispatch NC4_hdf5_pluginpathtable = {
+NC_PluginPathDispatch NC4_hdf5_pluginpathtable = {
     NC_FORMATX_NC_HDF5,
     NC_PLUGINPATH_DISPATCH_VERSION,
     NC4_hdf5_plugin_path_initialize,
diff --git a/libnczarr/zplugins.c b/libnczarr/zplugins.c
index 510befe080..618b4270ac 100644
--- a/libnczarr/zplugins.c
+++ b/libnczarr/zplugins.c
@@ -42,7 +42,7 @@ static int NCZ_plugin_save(GlobalNCZarr* gz, size_t filterid, NCZ_Plugin* p);
 static int getentries(const char* path, NClist* contents);
 static int loadcodecdefaults(GlobalNCZarr* gz, const char* path, const NCZ_codec_t** cp, NCPSharedLib* lib, int* lib_usedp);
 
-#ifdef NAMEOPT
+#if defined NAMEOPT || defined _WIN32
 static int pluginnamecheck(const char* name);
 #endif
 
@@ -59,7 +59,7 @@ static int pluginnamecheck(const char* name);
 
 /**************************************************/
 /* The NCZarr Plugin Path Dispatch table and functions */
-const NC_PluginPathDispatch NCZ_pluginpathtable = {
+NC_PluginPathDispatch NCZ_pluginpathtable = {
     NC_FORMATX_NCZARR,
     NC_PLUGINPATH_DISPATCH_VERSION,
     NCZ_plugin_path_initialize,
@@ -669,7 +669,7 @@ loadcodecdefaults(GlobalNCZarr* gz, const char* path, const NCZ_codec_t** cp, NC
     return THROW(stat);
 }
 
-#ifdef NAMEOPT
+#if defined NAMEOPT || defined _WIN32
 static int
 pluginnamecheck(const char* name)
 {