Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests use normal include-protection



details:   https://anonhg.NetBSD.org/src/rev/2c1d8131ef99
branches:  trunk
changeset: 756603:2c1d8131ef99
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jul 25 22:29:15 2010 +0000

description:
use normal include-protection

diffstat:

 tests/h_macros.h |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r e7e1cbf0af17 -r 2c1d8131ef99 tests/h_macros.h
--- a/tests/h_macros.h  Sun Jul 25 22:28:48 2010 +0000
+++ b/tests/h_macros.h  Sun Jul 25 22:29:15 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_macros.h,v 1.2 2009/04/14 10:19:38 pooka Exp $ */
+/* $NetBSD: h_macros.h,v 1.3 2010/07/25 22:29:15 pooka Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -26,11 +26,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if defined(_H_MACROS_H_)
-#   error "h_macros.h can only be included once."
-#else
-#   define _H_MACROS_H_
-#endif
+#ifndef SRC_TESTS_H_MACROS_H_
+#define SRC_TESTS_H_MACROS_H_
 
 #include <errno.h>
 #include <stdarg.h>
@@ -63,3 +60,5 @@
 
        atf_tc_fail(buf);
 }
+
+#endif



Home | Main Index | Thread Index | Old Index