mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
44 lines
852 B
C
44 lines
852 B
C
/*
|
|
Copyright 2018, UCAR/Unidata
|
|
See COPYRIGHT file for copying and redistribution conditions.
|
|
|
|
This is part of netCDF.
|
|
|
|
This program checks to see that netcdf_meta.h exists and is
|
|
properly formatted.
|
|
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <stdio.h> /* printf() */
|
|
#include <config.h>
|
|
#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) {
|
|
|
|
/* If netcdf_meta.h is damaged, this file will
|
|
just flat-out fail to compile, also resulting
|
|
in an error.
|
|
*/
|
|
|
|
#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");
|
|
return 0;
|
|
#endif
|
|
|
|
|
|
}
|