Skip to content
Snippets Groups Projects
Commit 17a6ffa8 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added feature functions to remove reliance on ifdefs in other libraries

parent efd37a20
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !121. Comments created here will be created in the context of that merge request.
......@@ -1447,6 +1447,9 @@ extern int (*proj_stere_to_lonlat_func)(struct CDI_GridProjParams gpp, double, d
// Used on CDO remap_scrip_io.cc
void cdf_def_var_filter(int ncid, int ncvarID, const char *filterSpec);
int cdi_has_dap();
int cdi_has_cgribex();
#ifdef __cplusplus
}
#endif
......
......@@ -584,6 +584,24 @@ stream_def_accesstype(stream_t *s, int type)
Error("Changing access type from %s not allowed!", s->accesstype == TYPE_REC ? "REC to VAR" : "VAR to REC");
}
int
cdi_has_dap()
{
#ifdef HAVE_LIBNC_DAP
return 1;
#endif
return 0;
}
int
cdi_has_cgribex()
{
#ifdef HAVE_LIBCGRIBEX
return 1;
#endif
return 0;
}
/*
* Local Variables:
* c-file-style: "Java"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment