fixed header file
@@ -139,9 +139,12 @@ struct NC_Dispatch
size_t *nelemsp, float *preemptionp);
};
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* Read-only dispatch layers can use these functions to return
* NC_EPERM to all attempts to modify a file. */
-
EXTERNL int NC_RO_create(const char *path, int cmode, size_t initialsz, int basepe,
size_t *chunksizehintp, void* parameters,
const NC_Dispatch*, int);
@@ -165,8 +168,8 @@ EXTERNL int NC_RO_def_dim(int ncid, const char *name, size_t len, int *idp);
EXTERNL int NC_RO_rename_dim(int ncid, int dimid, const char *name);
EXTERNL int NC_RO_set_fill(int ncid, int fillmode, int *old_modep);
-/* These functions are for dispatch layers that don't implement these
- * legacy functions. They return NC_ENOTNC3. */
+ /* These functions are for dispatch layers that don't implement
+ * these legacy functions. They return NC_ENOTNC3. */
EXTERNL int NC_NOTNC3_put_varm(int ncid, int varid, const size_t * start,
const size_t *edges, const ptrdiff_t *stride,
const ptrdiff_t *imapp, const void *value0,
@@ -175,8 +178,8 @@ EXTERNL int NC_NOTNC3_get_varm(int ncid, int varid, const size_t *start,
const size_t *edges, const ptrdiff_t *stride,
const ptrdiff_t *imapp, void *value0, nc_type memtype);
-/* These functions are for dispatch layers that don't implement the
- * enhanced model. They return NC_ENOTNC4. */
+ /* These functions are for dispatch layers that don't implement
+ * the enhanced model. They return NC_ENOTNC4. */
EXTERNL int NC_NOTNC4_def_var_filter(int, int, unsigned int, size_t,
const unsigned int*);
EXTERNL int NC_NOTNC4_def_grp(int, const char *, int *);
@@ -216,5 +219,8 @@ EXTERNL int NC_NOTNC4_inq_typeids(int, int *, int *);
EXTERNL int NC_NOTNC4_inq_user_type(int, nc_type, char *, size_t *,
nc_type *, size_t *, int *);
EXTERNL int NC_NOTNC4_inq_typeid(int, const char *, nc_type *);
+#if defined(__cplusplus)
+}
+#endif
#endif /* NETCDF_DISPATCH_H */
