Skip to content
Snippets Groups Projects
Commit 6a09acf4 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Extend conditionally compiled region.

* There is no caller for the newly removed function stubs anyway.
parent 9ff23c2f
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,10 @@
#include "cdf_int.h"
#if defined (HAVE_LIBNETCDF)
const char *cdfLibraryVersion(void)
{
#if defined (HAVE_LIBNETCDF)
return nc_inq_libvers();
#else
return "library undefined";
#endif
}
#if defined(HAVE_H5GET_LIBVERSION)
......@@ -64,7 +61,6 @@ void cdfDebug(int debug)
Message("debug level %d", debug);
}
#if defined (HAVE_LIBNETCDF)
static
void cdfComment(int ncid)
{
......@@ -87,12 +83,10 @@ void cdfComment(int ncid)
cdf_put_att_text(ncid, NC_GLOBAL, "CDI", strlen(comment), comment);
}
#endif
static int cdfOpenFile(const char *filename, const char *mode, int *filetype)
{
int ncid = -1;
#if defined (HAVE_LIBNETCDF)
int fmode = tolower(*mode);
int writemode = NC_CLOBBER;
int readmode = NC_NOWRITE;
......@@ -138,7 +132,6 @@ static int cdfOpenFile(const char *filename, const char *mode, int *filetype)
ncid = CDI_EINVAL;
}
}
#endif
return ncid;
}
......@@ -169,10 +162,8 @@ int cdfOpen64(const char *filename, const char *mode)
if ( CDF_Debug )
Message("Open %s with mode %c", filename, *mode);
#if defined (HAVE_LIBNETCDF)
#if ! defined (NC_64BIT_OFFSET)
open_file = FALSE;
#endif
#endif
if ( open_file )
......@@ -221,15 +212,14 @@ int cdf4Open(const char *filename, const char *mode, int *filetype)
static void cdfCloseFile(int fileID)
{
#if defined (HAVE_LIBNETCDF)
cdf_close(fileID);
#endif
}
void cdfClose(int fileID)
{
cdfCloseFile(fileID);
}
#endif
/*
* 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