From: Tom Tromey Date: Wed, 22 Nov 2017 16:37:05 +0000 (-0700) Subject: Add include guards to common/format.h X-Git-Tag: users/ARM/embedded-binutils-master-2017q4~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a997029fb0fca1a9e2832db80a3afb9bccaaf59;p=thirdparty%2Fbinutils-gdb.git Add include guards to common/format.h This adds include guards to common/format.h. ChangeLog 2017-11-26 Tom Tromey * common/format.h: Add include guards. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1d77d85de6f..a901409228b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-11-26 Tom Tromey + + * common/format.h: Add include guards. + 2017-11-26 Tom Tromey * nat/linux-personality.h (class diff --git a/gdb/common/format.h b/gdb/common/format.h index 33afc3a3f40..f3a94b8bbb6 100644 --- a/gdb/common/format.h +++ b/gdb/common/format.h @@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifndef COMMON_FORMAT_H +#define COMMON_FORMAT_H + #if defined(__MINGW32__) && !defined(PRINTF_HAS_LONG_LONG) # define USE_PRINTF_I64 1 # define PRINTF_HAS_LONG_LONG @@ -62,3 +65,5 @@ extern void free_format_pieces (struct format_piece *frags); /* Freeing, cast as a cleanup. */ extern void free_format_pieces_cleanup (void *); + +#endif /* COMMON_FORMAT_H */