This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[PATCH] Add header-guard to gbl-ctors.h


:ADDPATCH gcc:

	* gbl-ctors.h: Add header guard.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 gcc/ChangeLog   |    4 ++++
 gcc/gbl-ctors.h |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 55a0a87..bdc4bae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
 2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
 
+	* gbl-ctors.h: Add header guard.
+
+2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
+
 	* tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
 	sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
 	vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
diff --git a/gcc/gbl-ctors.h b/gcc/gbl-ctors.h
index 67d5740..9fcc22c 100644
--- a/gcc/gbl-ctors.h
+++ b/gcc/gbl-ctors.h
@@ -35,6 +35,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 	Note that this file should only be compiled with GCC.
 */
 
+#ifndef GCC_GBL_CTORS_H
+#define GCC_GBL_CTORS_H
 /*  Declare a pointer to void function type.  */
 
 typedef void (*func_ptr) (void);
@@ -81,3 +83,4 @@ do {									\
 } while (0)
 #endif
 
+#endif /* GCC_GBL_CTORS_H */

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