diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-23 15:06:00 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-23 15:30:44 +0100 |
commit | 6825a04de61f0bceab0ccddb34d825c3951caef1 (patch) | |
tree | 82d4492ba16e067e1adad34a5a7bda38daa067c5 | |
parent | systemctl: bugfix for systemctl reboot command with argument (diff) | |
download | systemd-6825a04de61f0bceab0ccddb34d825c3951caef1.tar.xz systemd-6825a04de61f0bceab0ccddb34d825c3951caef1.zip |
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
-rw-r--r-- | src/shared/macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 96d96f9621..ae2971fad1 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -238,7 +238,7 @@ static inline unsigned long ALIGN_POWER2(unsigned long u) { #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 |