This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add header-guard to gbl-ctors.h
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rep dot dot dot nop at gmail dot com
- Date: Fri, 5 Jun 2009 21:28:06 +0200
- Subject: [PATCH] Add header-guard to gbl-ctors.h
- References: <63213a79c5a038d6b53d8ab38d547b269955252f.1244122541.git.rep.dot.nop@gmail.com>
: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 */