chiark / gitweb /
build-sys: fix build on compilers without static_assert
[elogind.git] / src / shared / macro.h
index 96d96f962116d0fdcce5c264a57e1c874c0d5fbe..ae2971fad141f54959bc89d0e50675f5faa2497a 100644 (file)
@@ -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