We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7fe1bcd + 973aa0a commit ee4a3b6Copy full SHA for ee4a3b6
nc_test/tst_meta.c
@@ -14,7 +14,10 @@
14
#include <stdlib.h>
15
#include <stdio.h>
16
#include <netcdf.h>
17
+
18
+#if defined(NC_HAVE_META_H)
19
#include <netcdf_meta.h>
20
+#endif
21
22
int main(int argc, char **argv) {
23
@@ -24,7 +27,11 @@ int main(int argc, char **argv) {
24
27
*/
25
28
26
29
#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
33
printf("Error! NETCDF_META_H not defined. Check netcdf_meta.h.\n");
34
35
return -1;
36
#else
37
printf("Success! NETCDF_META_H defined.\n");
0 commit comments