From abd543c8e9dab8c3c7f39b9e0558d7078e18ea9b Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 30 Nov 2020 23:01:20 +0000 Subject: [PATCH] Issue: #260 Don't use C++ static_assert in C files Former-commit-id: f19b9c155ef5b957f7cd9a3017c54aab742ffb2f --- src/fastlock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fastlock.h b/src/fastlock.h index e4ab1874f..0809c8bcd 100644 --- a/src/fastlock.h +++ b/src/fastlock.h @@ -85,4 +85,6 @@ struct fastlock #endif }; +#ifdef __cplusplus static_assert(offsetof(struct fastlock, m_ticket) == 64, "ensure padding is correct"); +#endif \ No newline at end of file