diff --git a/src/clib/pio.h b/src/clib/pio.h index 26e45d54f38..4e40e9c6666 100644 --- a/src/clib/pio.h +++ b/src/clib/pio.h @@ -16,15 +16,7 @@ #include #include -#ifdef _NETCDF #include -#ifdef _NETCDF4 -#include -#endif -#endif -#ifdef _PNETCDF -#include -#endif #ifndef MPI_OFFSET /** MPI_OFFSET is an integer type of size sufficient to represent the diff --git a/src/clib/pio_internal.h b/src/clib/pio_internal.h index 595f3b93f31..48fe3ac9995 100644 --- a/src/clib/pio_internal.h +++ b/src/clib/pio_internal.h @@ -16,6 +16,12 @@ #include #include #include +#ifdef _NETCDF4 +#include +#endif +#ifdef _PNETCDF +#include +#endif #ifdef TIMING #include #endif