Merge pull request #812 from Unidata/gh809.wif

Gh809.wif
This commit is contained in:
Ward Fisher 2018-01-29 12:56:22 -07:00 committed by GitHub
commit ee4a3b6b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,10 @@
#include <stdlib.h>
#include <stdio.h>
#include <netcdf.h>
#if defined(NC_HAVE_META_H)
#include <netcdf_meta.h>
#endif
int main(int argc, char **argv) {
@ -24,7 +27,11 @@ int main(int argc, char **argv) {
*/
#ifndef NETCDF_META_H
#ifndef NC_HAVE_META_H
printf("Error! NC_HAVE_META_H not defined. Check netcdf.h.\n");
#else
printf("Error! NETCDF_META_H not defined. Check netcdf_meta.h.\n");
#endif
return -1;
#else
printf("Success! NETCDF_META_H defined.\n");