diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-12-09 22:47:58 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-12-09 16:20:48 -0800 |
commit | 1aaf3e42e2f09af84846c26b3e9e6c05acedd685 (patch) | |
tree | 9a6e4dea1fed7c411baa506b021b0f3594929884 /src | |
parent | 80c798bdf0a9021ae2ae22c934ea5e01c2385818 (diff) |
sdk: make C++11 plugins build again
compositor.h must not define a 'static_assert' macro, since that
conflicts with the new 'static_assert' in the standard and breaks
the build.
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compositor.h b/src/compositor.h index a1613451..6bd637ed 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -45,10 +45,6 @@ extern "C" { #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) -#ifndef static_assert -#define static_assert(cond, msg) -#endif - #define container_of(ptr, type, member) ({ \ const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) |