This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add include guards to common/format.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6a997029fb0fca1a9e2832db80a3afb9bccaaf59

commit 6a997029fb0fca1a9e2832db80a3afb9bccaaf59
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Nov 22 09:37:05 2017 -0700

    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.

Diff:
---
 gdb/ChangeLog       | 4 ++++
 gdb/common/format.h | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1d77d85..a901409 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 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
 	maybe_disable_address_space_randomization): New class.
 	(maybe_disable_address_space_randomization): Don't declare
diff --git a/gdb/common/format.h b/gdb/common/format.h
index 33afc3a..f3a94b8 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 <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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]