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 c0079f6 commit cbcc785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/clib/pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@

#include <netcdf.h>

#ifndef MPI_OFFSET
/** MPI_OFFSET is an integer type of size sufficient to represent the
* size (in bytes) of the largest file supported by MPI. In some MPI
* implementations MPI_OFFSET is not properly defined. */
#define MPI_OFFSET MPI_LONG_LONG
#endif

/** PIO_OFFSET is an integer type of size sufficient to represent the
* size (in bytes) of the largest file supported by MPI. This is not
* actually used by the code. */
Expand Down
7 changes: 7 additions & 0 deletions src/clib/pio_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
#include <mpe.h>
#endif /* USE_MPE */

#ifndef MPI_OFFSET
/** MPI_OFFSET is an integer type of size sufficient to represent the
* size (in bytes) of the largest file supported by MPI. In some MPI
* implementations MPI_OFFSET is not properly defined. */
#define MPI_OFFSET MPI_LONG_LONG
#endif

/* These are the sizes of types in netCDF files. Do not replace these
* constants with sizeof() calls for C types. They are not the
* same. Even on a system where sizeof(short) is 4, the size of a
Expand Down

0 comments on commit cbcc785

Please sign in to comment.