From 0212dc18d3c4c68a094a27182ae2a3441df5bf78 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 19 Apr 2022 13:09:53 +0100 Subject: [PATCH] Header guard --- tools/grib_tools.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/grib_tools.h b/tools/grib_tools.h index f16ec8b96..d11c8d11a 100644 --- a/tools/grib_tools.h +++ b/tools/grib_tools.h @@ -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 #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 */