From c7badd37d3ac5b06b1fb170b7dfc8ed7c00ce64b Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 23 Jan 2015 09:06:00 -0500 Subject: build-sys: fix build on compilers without static_assert Build would fail when assert was used on the same line in different files #included together. https://bugs.freedesktop.org/show_bug.cgi?id=87339 Signed-off-by: Anthony G. Basile --- src/shared/macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/macro.h b/src/shared/macro.h index 6aa6d98913..fcc988a2b5 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -119,7 +119,7 @@ static inline size_t ALIGN_TO(size_t l, size_t ali) { #else #define assert_cc(expr) \ DISABLE_WARNING_DECLARATION_AFTER_STATEMENT; \ - struct CONCATENATE(_assert_struct_, __LINE__) { \ + struct CONCATENATE(_assert_struct_, __COUNTER__) { \ char x[(expr) ? 0 : -1]; \ }; \ REENABLE_WARNING -- cgit v1.2.3-54-g00ecf