History

avcodec/ccaption_dec: Use static_assert instead of _Static_assert

The latter is not supported by MSVC 19.27.

Andreas Rheinhardt committed 2 years ago

Commit 2a0194b1 parent f1b08b81 file · +4 −3Browse files

Unified · Split

libavcodec/ccaption_dec.c+4−3
@@ -19,6 +19,7 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include <assert.h>
2223 #include "avcodec.h"
2324 #include "ass.h"
2425 #include "codec_internal.h"
@@ -180,9 +181,9 @@ static const char charset_overrides[4][128][sizeof("\u266a")] = · 155 unmodified lines
180181 };
181182 #define EMPTY_START(IDX)
182183 #define EMPTY_END
183−#define ASSERT_ENTRY(IDX, str) \
184− _Static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \
185− "'" str "' string takes too much space");
184+#define ASSERT_ENTRY(IDX, str) \
185+ static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \
186+ "'" str "' string takes too much space");
186187 CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END)
187188
188189 static const unsigned char bg_attribs[8] = // Color

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t