Skip to content

Commit 324dacc

Browse files
author
Jeff Whitaker
committed
fix for compiling with netcdf-c 4.7.4 (issue Unidata#1363)
1 parent 4c4acc5 commit 324dacc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/build_old.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
env:
88
PNETCDF_VERSION: 1.12.1
9-
NETCDF_VERSION: 4.8.1
9+
NETCDF_VERSION: 4.7.4
1010
NETCDF_DIR: ${{ github.workspace }}/..
1111
NETCDF_EXTRA_CONFIG: --enable-pnetcdf
1212
CC: mpicc.mpich

‎external/nc_complex/src/nc_complex.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
#include "nc_complex_version.h"
1111

12+
// to enable compilation with older versions of netcdf-c
13+
#ifndef NC_FORMATX_NCZARR
14+
#define NC_FORMATX_NCZARR (10)
15+
#endif
16+
1217
// NOLINTBEGIN(bugprone-assignment-in-if-condition)
1318
#define CHECK(func) \
1419
do { \

0 commit comments

Comments
 (0)