Commit e0ceb789 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix for older netcdf 4 libraries.

parent 04fd626b
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
#include "pio_rpc.h" #include "pio_rpc.h"
#include "pio_util.h" #include "pio_util.h"
#include "cdi_int.h" #include "cdi_int.h"
#ifndef HAVE_NETCDF_PAR_H
#define MPI_INCLUDED
#endif
#include "pio_cdf_int.h" #include "pio_cdf_int.h"
#include "resource_handle.h" #include "resource_handle.h"
#include "resource_unpack.h" #include "resource_unpack.h"
......
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
#include <math.h> #include <math.h>
#include <float.h> #include <float.h>
#if defined (HAVE_LIBNETCDF)
# include <netcdf.h>
#endif
#include "dmemory.h" #include "dmemory.h"
#include "cdi.h" #include "cdi.h"
...@@ -21,12 +26,6 @@ ...@@ -21,12 +26,6 @@
#include "varscan.h" #include "varscan.h"
#include "vlist.h" #include "vlist.h"
#include "pio_util.h"
#if defined (HAVE_LIBNETCDF)
# include "netcdf.h"
#endif
//#define PROJECTION_TEST //#define PROJECTION_TEST
#undef UNDEFID #undef UNDEFID
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment