Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
567bb54a
Commit
567bb54a
authored
Mar 26, 2015
by
Uwe Schulzweida
Browse files
cdilib.c: prevent include of include files if they are already included
parent
01cd5887
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/gribapi.h
View file @
567bb54a
...
...
@@ -2,11 +2,15 @@
#define _GRIBAPI_H
#ifdef HAVE_LIBGRIB_API
# include "error.h"
# include <grib_api.h>
#include
<grib_api.h>
#ifndef _ERROR_H
#include
"error.h"
#endif
#endif
#ifndef _CDI_INT_H
#include
"cdi_int.h"
#endif
#define GRIBAPI_MISSVAL -9.E33
...
...
src/grid.h
View file @
567bb54a
...
...
@@ -2,7 +2,9 @@
#define _GRID_H
#include
"cdi.h"
#ifndef RESOURCE_HANDLE_H
#include
"resource_handle.h"
#endif
typedef
unsigned
char
mask_t
;
...
...
src/serialize.h
View file @
567bb54a
...
...
@@ -8,8 +8,12 @@
#include
<string.h>
#include
"cdi.h"
#ifndef CDI_CKSUM_H_
#include
"cdi_cksum.h"
#endif
#ifndef _ERROR_H
#include
"error.h"
#endif
/*
* Generic interfaces for (de-)marshalling
...
...
src/stream_fcommon.h
View file @
567bb54a
#ifndef STREAM_FCOMMON_H
#define STREAM_FCOMMON_H
#ifndef _CDI_INT_H
#include
"cdi_int.h"
#endif
enum
{
SINGLE_PRECISION
=
4
,
...
...
src/stream_gribapi.h
View file @
567bb54a
#ifndef _STREAM_GRIBAPI_H
#define _STREAM_GRIBAPI_H
#ifndef _CDI_INT_H
#include
"cdi_int.h"
#endif
int
gribapiScanTimestep1
(
stream_t
*
streamptr
);
int
gribapiScanTimestep2
(
stream_t
*
streamptr
);
...
...
src/vlist.h
View file @
567bb54a
...
...
@@ -5,12 +5,14 @@
#include
"config.h"
#endif
#ifndef _ERROR_H
#include
"error.h"
#endif
#include
<stddef.h>
/* size_t */
#ifndef _CDI_LIMITS_H
#
include "cdi_limits.h"
#include
"cdi_limits.h"
#endif
#define VALIDMISS 1.e+303
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment