Module: xenomai-head
Branch: master
Commit: 650b45c10e1752ce50612f703be97b3486fcd381
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=650b45c10e1752ce50612f703be97b3486fcd381

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed Jul 20 12:00:14 2011 +0200

posix: Do not prevent double-inclusion of original stdio.h

iostream, eg., pulls in stdio.h for internal purposes. This pull will
only define a subset of what an explicit stdio.h inclusion provides. But
as we block a second inclusion so far, this full definition set cannot
be pulled later on. So move #include_next out of the double-inclusion
check.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 include/posix/stdio.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/posix/stdio.h b/include/posix/stdio.h
index adf3a90..775742b 100644
--- a/include/posix/stdio.h
+++ b/include/posix/stdio.h
@@ -1,12 +1,12 @@
+#ifndef __KERNEL__
+
+#include_next <stdio.h>
+
 #ifndef STDIO_H
 #define STDIO_H
 
-#ifndef __KERNEL__
-
 #include <stdarg.h>
 
-#include_next <stdio.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
@@ -23,6 +23,6 @@ int __real_printf(const char *fmt, ...);
 }
 #endif /* __cplusplus */
 
-#endif /* !__KERNEL__ */
-
 #endif /* STDIO_H */
+
+#endif /* !__KERNEL__ */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to