Module: xenomai-jki
Branch: for-forge
Commit: dd2d4a9fa56cd7deb2a5b35fa872b74e253bd667
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=dd2d4a9fa56cd7deb2a5b35fa872b74e253bd667

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Feb  4 19:23:43 2014 +0100

Replace typeof with __typeof__ in publicly accessible headers

Avoids clashes when compiling application in strict standard mode.

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

---

 include/boilerplate/scope.h |    2 +-
 include/cobalt/wrappers.h   |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/boilerplate/scope.h b/include/boilerplate/scope.h
index 2bdc747..9e551ae 100644
--- a/include/boilerplate/scope.h
+++ b/include/boilerplate/scope.h
@@ -47,7 +47,7 @@ int pshared_check(void *heap, void *addr);
 
 #define __main_heap    NULL
 
-#define dref_type(t)           typeof(t)
+#define dref_type(t)           __typeof__(t)
 #define __memoff(base, addr)   (addr)
 #define __memptr(base, off)    (off)
 #define __memchk(base, addr)   1
diff --git a/include/cobalt/wrappers.h b/include/cobalt/wrappers.h
index e0f7a63..aab50e6 100644
--- a/include/cobalt/wrappers.h
+++ b/include/cobalt/wrappers.h
@@ -25,7 +25,10 @@
 #define __STD(call)            __real_ ## call
 #define __COBALT(call)         __cobalt_ ## call
 #define __RT(call)             __COBALT(call)
-#define COBALT_DECL(T, P)      typeof(T) __RT(P); typeof(T) __STD(P); 
typeof(T) __WRAP(P)
+#define COBALT_DECL(T, P)      \
+       __typeof__(T) __RT(P);  \
+       __typeof__(T) __STD(P); \
+       __typeof__(T) __WRAP(P)
 
 /*
  * 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to