Commit 6e2ec0c0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added ifdef HAVE_LIBNETCDF.

parent 87e021f5
#if defined (HAVE_CONFIG_H)
#include "config.h"
#endif
#include "stream_cdf.h"
#include "cdf_lazy_grid.h"
......@@ -24,6 +28,8 @@ static bool cdfLazyInitialized;
#endif
#ifdef HAVE_LIBNETCDF
void cdfLazyGridDestroy(struct cdfLazyGrid *lazyGrid)
{
if (lazyGrid->base.area == cdfPendingLoad) lazyGrid->base.area = NULL;
......@@ -515,6 +521,9 @@ void cdfBaseGridRenew(struct cdfLazyGrid *restrict *restrict gridpptr, int gridt
*gridpptr = grid = (struct cdfLazyGrid *)Malloc(sizeof (grid_t));
cdfBaseGridInit((grid_t*)grid, gridtype);
}
#endif
/*
* Local Variables:
* c-file-style: "Java"
......
Markdown is supported
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