The latter is not supported by MSVC 19.27.
Unified · Split
| @@ -19,6 +19,7 @@ · 18 unmodified lines | ||
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | +#include <assert.h> | |
| 22 | 23 | #include "avcodec.h" |
| 23 | 24 | #include "ass.h" |
| 24 | 25 | #include "codec_internal.h" |
| @@ -180,9 +181,9 @@ static const char charset_overrides[4][128][sizeof("\u266a")] = · 155 unmodified lines | ||
| 180 | 181 | }; |
| 181 | 182 | #define EMPTY_START(IDX) |
| 182 | 183 | #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"); | |
| 186 | 187 | CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END) |
| 187 | 188 | |
| 188 | 189 | static const unsigned char bg_attribs[8] = // Color |