Re: [Qemu-devel] [PATCH 1/3] atomics: Test __STDC_VERSION__ for C11 compat

2016-08-29 Thread Paolo Bonzini
On 24/08/2016 22:44, Pranith Kumar wrote: > This patch tries to do the Right Thing™ to test for C11 features, > which is to test __STDC_VERSION__. Compilers can provide atomics even for older standards, for example: $ echo '__STDC_VERSION__' | gcc -E -x c - -std=gnu99 | tail -1 199901L $ echo '

[Qemu-devel] [PATCH 1/3] atomics: Test __STDC_VERSION__ for C11 compat

2016-08-24 Thread Pranith Kumar
This patch tries to do the Right Thing™ to test for C11 features, which is to test __STDC_VERSION__. Signed-off-by: Pranith Kumar --- include/qemu/atomic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index 43b0645..d313e