Re: [PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-11 Thread Peter Hutterer
On Wed, May 10, 2017 at 01:07:23PM +0200, Gabriel Laskar wrote: > On Wed, May 10, 2017 at 01:47:56PM +1000, Peter Hutterer wrote: > > clang supports __typeof__ which was the only real difference. Not sure any > > other compilers matter (that don't support __typeof__) > > > > Signed-off-by: Peter

Re: [PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-10 Thread Gabriel Laskar
On Wed, May 10, 2017 at 01:47:56PM +1000, Peter Hutterer wrote: > clang supports __typeof__ which was the only real difference. Not sure any > other compilers matter (that don't support __typeof__) > > Signed-off-by: Peter Hutterer > --- > src/libinput-util.h | 6

Re: [PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-10 Thread Armin Krezović
On 10.05.2017 05:47, Peter Hutterer wrote: > clang supports __typeof__ which was the only real difference. Not sure any > other compilers matter (that don't support __typeof__) > Hi, Fun fact: Clang defines __GNUC__ because it's gcc compatible and the gcc path was always used by clang, the

[PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-09 Thread Peter Hutterer
clang supports __typeof__ which was the only real difference. Not sure any other compilers matter (that don't support __typeof__) Signed-off-by: Peter Hutterer --- src/libinput-util.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/src/libinput-util.h