Commit 61dcf543 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Save compilation of dummy wrapper.

* Move corresponding check for missing format support to caller.
parent 87136937
......@@ -346,7 +346,7 @@ int grbScanTimestep2(stream_t * streamptr)
static
int grbScanTimestep(stream_t * streamptr)
{
int status;
int status = CDI_EUFTYPE;
int filetype;
filetype = streamptr->filetype;
......@@ -358,9 +358,11 @@ int grbScanTimestep(stream_t * streamptr)
}
else
#endif
{
status = gribapiScanTimestep(streamptr);
}
#ifdef HAVE_LIBGRIB_API
status = gribapiScanTimestep(streamptr);
#else
Error("Sufficient GRIB support unavailable!");
#endif
return (status);
}
......
......@@ -1737,10 +1737,10 @@ int gribapiScanTimestep2(stream_t * streamptr)
}
#if defined (HAVE_LIBGRIB_API)
int gribapiScanTimestep(stream_t * streamptr)
{
int rstatus = 0;
#if defined (HAVE_LIBGRIB_API)
size_t recsize = 0;
off_t recpos = 0;
unsigned char *gribbuffer;
......@@ -2017,12 +2017,9 @@ int gribapiScanTimestep(stream_t * streamptr)
}
rstatus = (int)streamptr->ntsteps;
#else
Error("GRIB_API support not compiled in!");
#endif
return (rstatus);
}
#endif
#ifdef gribWarning
#undef gribWarning
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment