Skip to content

Commit ee4a3b6

Browse files
authored
Merge pull request #812 from Unidata/gh809.wif
Gh809.wif
2 parents 7fe1bcd + 973aa0a commit ee4a3b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nc_test/tst_meta.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
#include <stdlib.h>
1515
#include <stdio.h>
1616
#include <netcdf.h>
17+
18+
#if defined(NC_HAVE_META_H)
1719
#include <netcdf_meta.h>
20+
#endif
1821

1922
int main(int argc, char **argv) {
2023

@@ -24,7 +27,11 @@ int main(int argc, char **argv) {
2427
*/
2528

2629
#ifndef NETCDF_META_H
30+
#ifndef NC_HAVE_META_H
31+
printf("Error! NC_HAVE_META_H not defined. Check netcdf.h.\n");
32+
#else
2733
printf("Error! NETCDF_META_H not defined. Check netcdf_meta.h.\n");
34+
#endif
2835
return -1;
2936
#else
3037
printf("Success! NETCDF_META_H defined.\n");

0 commit comments

Comments
 (0)