A better solution to previous fix, in line with documented usage of netcdf.h and other header files.
#ifndef _NC4INTERNAL_
#define _NC4INTERNAL_
+#include "netcdf.h"
#include "config.h"
#include <stdio.h>
#include "ncindex.h"
#include "nc_provenance.h"
+
+#include "netcdf_f.h"
+#include "netcdf_mem.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"
