summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2017-10-13 22:58:40 +0200
committerLukas Mai <l.mai@web.de>2017-10-13 22:58:40 +0200
commit21aae866e23053ea9fded1524d35b5ec6dbb119c (patch)
tree3b38fb73e3e31f84ef704da157479b6d87577a48
parent1a1e0afc4e5562c1b92b035527b7024adc8a24f0 (diff)
downloadperl-21aae866e23053ea9fded1524d35b5ec6dbb119c.tar.gz
use standard STMT_START/STMT_END macros in STATIC_ASSERT_STMT
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index a1aa1c0738..f2131232d2 100644
--- a/perl.h
+++ b/perl.h
@@ -3721,7 +3721,7 @@ EXTERN_C int perl_tsa_mutex_unlock(perl_mutex* mutex)
/* We need this wrapper even in C11 because 'case X: static_assert(...);' is an
error (static_assert is a declaration, and only statements can have labels).
*/
-#define STATIC_ASSERT_STMT(COND) do { STATIC_ASSERT_DECL(COND); } while (0)
+#define STATIC_ASSERT_STMT(COND) STMT_START { STATIC_ASSERT_DECL(COND); } STMT_END
#ifndef __has_builtin
# define __has_builtin(x) 0 /* not a clang style compiler */