Header guard

This commit is contained in:
Shahram Najm 2022-04-19 13:09:53 +01:00
parent 66fbbfcbfd
commit 0212dc18d3
1 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,9 @@
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/
#ifndef GRIB_TOOLS_H
#define GRIB_TOOLS_H
#ifdef __gnu_hurd__
#define _FILE_OFFSET_BITS 64 /* 64-bit offsets off_t not the default on Hurd/i386 */
@ -18,9 +21,6 @@
#include <unistd.h>
#endif
#ifndef GRIB_TOOLS_H
#define GRIB_TOOLS_H
#ifndef S_IFMT
#define S_IFMT 0170000 /* type of file */
#endif
@ -208,4 +208,4 @@ int grib_tool_new_filename_action(grib_runtime_options* options, const char* fil
int grib_no_handle_action(grib_runtime_options* options, int err);
int exit_if_input_is_directory(const char* toolname, const char* filename);
#endif
#endif /* GRIB_TOOLS_H */