X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-compiler.h;h=eb201bdc93c791f142d2cbc0aa7a86fd90d2472d;hb=7850c5cc9c0ff172bff3798c55f3d17bebf7c6ce;hp=674b519cd11991ee4a04b42abdb081e86d2d7843;hpb=e0ca901df9ff4742dfcaf1c8839f042760197555;p=lttng-ust.git diff --git a/include/lttng/ust-compiler.h b/include/lttng/ust-compiler.h index 674b519c..eb201bdc 100644 --- a/include/lttng/ust-compiler.h +++ b/include/lttng/ust-compiler.h @@ -32,8 +32,8 @@ * g++ 4.8 and prior do not support C99 compound literals. Therefore, * force allocating those on the heap with these C++ compilers. */ -#if defined (__cplusplus) && defined (__GNUC__) && \ - (__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 8)) +#if defined (__cplusplus) && !defined (__clang__) && defined (__GNUC__) && \ + ((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 8))) # ifndef LTTNG_UST_ALLOCATE_COMPOUND_LITERAL_ON_HEAP # define LTTNG_UST_ALLOCATE_COMPOUND_LITERAL_ON_HEAP # endif