Skip to content

Commit

Permalink
Merge pull request #1149 from Unidata/netcdf_mem_fix.dmh
Browse files Browse the repository at this point in the history
Remove unneeded include of netcdf.h from netcdf_mem.h
  • Loading branch information
WardF committed Oct 9, 2018
2 parents 266d3c5 + 534364b commit 6b0217f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions include/nc3internal.h
Expand Up @@ -16,10 +16,9 @@
# include <stdint.h>
#endif /* HAVE_STDINT_H */
#include <sys/types.h> /* off_t */
#include "netcdf.h"
#ifdef USE_PARALLEL
#include "netcdf_par.h"
#else
#include "netcdf.h"
#endif /* USE_PARALLEL */

/* Always needed */
Expand Down
2 changes: 1 addition & 1 deletion include/nc4internal.h
Expand Up @@ -20,14 +20,14 @@

#include "ncdimscale.h"
#include "nc_logging.h"
#include "netcdf_mem.h"
#include "ncindex.h"

#ifdef USE_PARALLEL
#include "netcdf_par.h"
#endif /* USE_PARALLEL */
#include "netcdf.h"
#include "netcdf_f.h"
#include "netcdf_mem.h"

/* Always needed */
#include "nc.h"
Expand Down
6 changes: 3 additions & 3 deletions include/ncdispatch.h
Expand Up @@ -19,12 +19,12 @@
#if defined(HDF5_PARALLEL) || defined(USE_PNETCDF)
#include <mpi.h>
#endif
#ifdef USE_PARALLEL
#include "netcdf_par.h"
#endif
#include "netcdf.h"
#include "nc.h"
#include "ncuri.h"
#ifdef USE_PARALLEL
#include "netcdf_par.h"
#endif

#define longtype ((sizeof(long) == sizeof(int) ? NC_INT : NC_INT64))

Expand Down
2 changes: 0 additions & 2 deletions include/netcdf_mem.h
Expand Up @@ -12,8 +12,6 @@
#ifndef NETCDF_MEM_H
#define NETCDF_MEM_H 1

#include <netcdf.h>

typedef struct NC_memio {
size_t size;
void* memory;
Expand Down
3 changes: 0 additions & 3 deletions nc_test/tst_diskless5.c
@@ -1,8 +1,5 @@
/* Diskless test in support of https://github.com/Unidata/netcdf-c/issues/400 */




#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
Expand Down

0 comments on commit 6b0217f

Please sign in to comment.