mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
commit
ee4a3b6b3d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user