Re: [PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Thiago Macieira
On segunda-feira, 9 de dezembro de 2013 15:57:16, Kristian Høgsberg wrote: > Ugh, ok, sorry. Maybe we need a private header file where we can hide > all our C macros - ARRAY_LENGTH, static_assert, container_of etc. This "poor man's static_assert" should work in C99 mode too: #include #if !defin

Re: [PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Kristian Høgsberg
On Mon, Dec 09, 2013 at 10:47:58PM +0100, Giulio Camuffo wrote: > compositor.h must not define a 'static_assert' macro, since that > conflicts with the new 'static_assert' in the standard and breaks > the build. Ugh, ok, sorry. Maybe we need a private header file where we can hide all our C macro

[PATCH weston] sdk: make C++11 plugins build again

2013-12-09 Thread Giulio Camuffo
compositor.h must not define a 'static_assert' macro, since that conflicts with the new 'static_assert' in the standard and breaks the build. --- desktop-shell/shell.c | 4 src/compositor.h | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-shell/shell.c b/d