compat/atomics/gcc: use __typeof__ instead of typeof
authorJames Almer <jamrial@gmail.com>
Tue, 7 Mar 2017 03:04:46 +0000 (00:04 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 18 Mar 2017 15:13:46 +0000 (12:13 -0300)
commit824d4062a172bd435fea7cbf8d6b55583c73e70e
treecb8ff7b85a582745e5366c10949acc420c383a51
parent3796fb2692f87d0000fc0aa4572ac025a6469c2b
compat/atomics/gcc: use __typeof__ instead of typeof

The typeof keyword is apparently not available when using the -std=c99 option.

Fixes the use of C11 atomic functions with old GCC.

Reviewed-by: Muhammad Faiz <mfcc64@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
compat/atomics/gcc/stdatomic.h