Skip to content

Commit

Permalink
moving reliance on ifdefs out of pio.h
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Nov 12, 2019
1 parent db72388 commit c0079f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/clib/pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@
#include <mpi.h>
#include <uthash.h>

#ifdef _NETCDF
#include <netcdf.h>
#ifdef _NETCDF4
#include <netcdf_par.h>
#endif
#endif
#ifdef _PNETCDF
#include <pnetcdf.h>
#endif

#ifndef MPI_OFFSET
/** MPI_OFFSET is an integer type of size sufficient to represent the
Expand Down
6 changes: 6 additions & 0 deletions src/clib/pio_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#include <bget.h>
#include <limits.h>
#include <math.h>
#ifdef _NETCDF4
#include <netcdf_par.h>
#endif
#ifdef _PNETCDF
#include <pnetcdf.h>
#endif
#ifdef TIMING
#include <gptl.h>
#endif
Expand Down

0 comments on commit c0079f6

Please sign in to comment.