mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Remove V2 code if V2 API not being built
Remove test code that uses the version 2 API if the version 2 API code is not being activated in the build. This was originally proposed in #656 with a better fix in #755 which was removed.
This commit is contained in:
parent
070df7c583
commit
63b700c40c
@ -559,6 +559,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
SUMMARIZE_ERR;
|
||||
|
||||
#ifndef NO_NETCDF_2
|
||||
#define VAR_DIMS2 2
|
||||
printf("*** testing 2D array of NC_FLOAT with v2 API...");
|
||||
{
|
||||
@ -584,6 +585,7 @@ main(int argc, char **argv)
|
||||
ncclose(ncid);
|
||||
}
|
||||
SUMMARIZE_ERR;
|
||||
#endif
|
||||
|
||||
#define NDIMS 3
|
||||
#define NNAMES 4
|
||||
|
Loading…
Reference in New Issue
Block a user