Flagging test to only run when CDF5 is enabled.
+#include "config.h"
#include <nc_tests.h>
#include "err_macros.h"
#include <stdio.h>
#define DIMMAXCLASSIC (NC_MAX_INT - 3)
#define DIMMAX64OFFSET (NC_MAX_UINT - 3)
+
+#ifdef USE_CDF5
#define DIMMAX64DATA (NC_MAX_UINT64 - 3)
+#endif
/*
Test that at least the meta-data works
@@ -62,6 +66,7 @@ main(int argc, char **argv)
if(dimsize != DIMMAX64OFFSET) ERR;
if ((stat=nc_close(ncid))) ERRSTAT(stat);
+#ifdef USE_CDF5
if(sizeof(size_t) == 8) {
printf("\n*** Writing Max Dimension Size (%llu) For NC_64BIT_DATA\n",DIMMAX64DATA);
if ((stat=nc_create(FILE64DATA, NC_CLOBBER | NC_64BIT_DATA, &ncid))) ERRSTAT(stat);
@@ -76,6 +81,7 @@ main(int argc, char **argv)
if(dimsize != DIMMAX64DATA) ERR;
if ((stat=nc_close(ncid))) ERRSTAT(stat);
}
+#endif /* USE_CDF5 */
SUMMARIZE_ERR;
FINAL_RESULTS;
