On Wed, 27 Nov 2024, Pali Rohár wrote:

C11 supports two-arg _Static_assert keyword
C++11 supports two-arg static_assert keyword
C++17 supports one-arg static_assert keyword
C23 supports one-arg static_assert keyword

So when possible expand _STATIC_ASSERT macro to the suitable C/C++ keyword.
---
mingw-w64-headers/crt/crtdbg.h | 8 +++++++-
mingw-w64-headers/crt/malloc.h | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)

I believe this change is fine, but do we have any use of these anywhere? I guess that would only be if user code uses them somewhere - so it's not very obvious if this still works or not.

(Feel free to push this, otherwise I can push it later.)

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to