Adjusted a test in support for Visual Studio 14
#define FILE_NAME "tst_global_fillval.nc"
+/* Unweildy, but currently this structure must be used
+ to accomodate Visual Studio */
+#if defined USE_NETCDF4 && USE_CDF5
+#define num_formats 5
+#elif USE_NETCDF4
+#define num_formats 4
+#elif USE_CDF
+#define num_formats 3
+#else
+#define num_formats 2
+#endif
+
int
main(int argc, char **argv)
{
printf("*** testing proper elatefill return...");
{
- int num_formats = 2;
+
int n = 0;
int i;
@@ -33,9 +45,6 @@ main(int argc, char **argv)
#ifdef USE_CDF5
num_formats++;
#endif
-#ifdef USE_NETCDF4
- num_formats += 2;
-#endif
int formats[num_formats];
formats[n++] = 0;
