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
549723a0
Commit
549723a0
authored
Jun 06, 2017
by
Uwe Schulzweida
Browse files
cdiGetFiletype: removed ifdefs.
parent
39366b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
549723a0
...
...
@@ -134,28 +134,21 @@ int cdiGetFiletype(const char *filename, int *byteorder)
filetype
=
CDI_FILETYPE_NC4
;
if
(
CDI_Debug
)
Message
(
"found HDF file = %s"
,
filename
);
}
#if defined (HAVE_LIBSERVICE)
else
if
(
srvCheckFiletype
(
fileID
,
&
swap
)
)
{
filetype
=
CDI_FILETYPE_SRV
;
if
(
CDI_Debug
)
Message
(
"found SRV file = %s"
,
filename
);
}
#endif
#if defined (HAVE_LIBEXTRA)
else
if
(
extCheckFiletype
(
fileID
,
&
swap
)
)
{
filetype
=
CDI_FILETYPE_EXT
;
if
(
CDI_Debug
)
Message
(
"found EXT file = %s"
,
filename
);
}
#endif
#if defined (HAVE_LIBIEG)
else
if
(
iegCheckFiletype
(
fileID
,
&
swap
)
)
{
filetype
=
CDI_FILETYPE_IEG
;
if
(
CDI_Debug
)
Message
(
"found IEG file = %s"
,
filename
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
else
if
(
gribCheckSeek
(
fileID
,
&
recpos
,
&
version
)
==
0
)
{
if
(
version
<=
1
)
...
...
@@ -169,7 +162,6 @@ int cdiGetFiletype(const char *filename, int *byteorder)
if
(
CDI_Debug
)
Message
(
"found seeked GRIB2 file = %s"
,
filename
);
}
}
#endif
fileClose
(
fileID
);
...
...
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