1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/vtk/fillvalue.patch
2025-05-10 10:55:13 +00:00

28 lines
1.8 KiB
Diff

# Rename _FillValue to NC_FillValue, this should no longer be necessary after VTK 9.4.3
# https://github.com/Unidata/netcdf-c/issues/2858
diff --git a/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c b/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c
index 2b661d3142..69b5ed2981 100644
--- a/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c
+++ b/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c
@@ -243,7 +243,7 @@ int ex_put_prop(int exoid, ex_entity_type obj_type, ex_entity_id obj_id, const c
vals[0] = 0; /* fill value */
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);
diff --git a/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c b/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c
index 9d2223dc11..98caea5a99 100644
--- a/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c
+++ b/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c
@@ -172,7 +172,7 @@ int ex_put_prop_names(int exoid, ex_entity_type obj_type, int num_props, char **
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);