Add include guards to common/format.h

This adds include guards to common/format.h.

ChangeLog
2017-11-26  Tom Tromey  <tom@tromey.com>

	* common/format.h: Add include guards.
This commit is contained in:
Tom Tromey 2017-11-22 09:37:05 -07:00
parent 2b63c337d9
commit 6a997029fb
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2017-11-26 Tom Tromey <tom@tromey.com>
* common/format.h: Add include guards.
2017-11-26 Tom Tromey <tom@tromey.com>
* nat/linux-personality.h (class

View File

@ -17,6 +17,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#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 */