public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/4] tst_test.h, test.h: Add mutual exclusion guards
@ 2017-02-14 12:26 Cyril Hrubis
  2017-02-14 12:26 ` [LTP] [PATCH 2/4] lib: Redirect to tst_brk_() early Cyril Hrubis
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Cyril Hrubis @ 2017-02-14 12:26 UTC (permalink / raw)
  To: ltp

These headers cannot be used at the same time, this makes sure they
aren't.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 include/old/test.h | 4 ++++
 include/tst_test.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/include/old/test.h b/include/old/test.h
index 209dc5b..2cb7b98 100644
--- a/include/old/test.h
+++ b/include/old/test.h
@@ -34,6 +34,10 @@
 #ifndef __TEST_H__
 #define __TEST_H__
 
+#ifdef TST_TEST_H__
+# error Newlib tst_test.h already included
+#endif /* TST_TEST_H__ */
+
 #include <stdio.h>
 #include <signal.h>
 #include <unistd.h>
diff --git a/include/tst_test.h b/include/tst_test.h
index 7dc371c..d8cc806 100644
--- a/include/tst_test.h
+++ b/include/tst_test.h
@@ -18,6 +18,10 @@
 #ifndef TST_TEST_H__
 #define TST_TEST_H__
 
+#ifdef __TEST_H__
+# error Oldlib test.h already included
+#endif /* __TEST_H__ */
+
 #include <unistd.h>
 
 #include "tst_common.h"
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-14 14:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 12:26 [LTP] [PATCH 1/4] tst_test.h, test.h: Add mutual exclusion guards Cyril Hrubis
2017-02-14 12:26 ` [LTP] [PATCH 2/4] lib: Redirect to tst_brk_() early Cyril Hrubis
2017-02-14 13:18   ` Jan Stancek
2017-02-14 13:22     ` Cyril Hrubis
2017-02-14 13:36       ` Jan Stancek
2017-02-14 12:26 ` [LTP] [PATCH 3/4] newlib: Allow SAFE_MACROS to be called from cleanup Cyril Hrubis
2017-02-14 13:23   ` Jan Stancek
2017-02-14 13:23     ` Cyril Hrubis
2017-02-14 13:52     ` Cyril Hrubis
2017-02-14 14:09       ` Jan Stancek
2017-02-14 14:11         ` Cyril Hrubis
2017-02-14 12:26 ` [LTP] [PATCH 4/4] syscalls: Make use of SAFE_MACROS in cleanup Cyril Hrubis
2017-02-14 13:49   ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox