avcodec/ccaption_dec: Use static_assert instead of _Static_assert
The latter is not supported by MSVC 19.27. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f1b08b8a65
commit
2a0194bafa
@ -19,6 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "ass.h"
|
#include "ass.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
@ -181,7 +182,7 @@ static const char charset_overrides[4][128][sizeof("\u266a")] =
|
|||||||
#define EMPTY_START(IDX)
|
#define EMPTY_START(IDX)
|
||||||
#define EMPTY_END
|
#define EMPTY_END
|
||||||
#define ASSERT_ENTRY(IDX, str) \
|
#define ASSERT_ENTRY(IDX, str) \
|
||||||
_Static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \
|
static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \
|
||||||
"'" str "' string takes too much space");
|
"'" str "' string takes too much space");
|
||||||
CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END)
|
CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user