The latter is not supported by MSVC 19.27.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -19,6 +19,7 @@ · 18 unmodified lines | |||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <assert.h> | ||
| 22 | #include "avcodec.h" | 23 | #include "avcodec.h" |
| 23 | #include "ass.h" | 24 | #include "ass.h" |
| 24 | #include "codec_internal.h" | 25 | #include "codec_internal.h" |
| @@ -180,9 +181,9 @@ static const char charset_overrides[4][128][sizeof("\u266a")] = · 155 unmodified lines | |||
| 180 | }; | 181 | }; |
| 181 | #define EMPTY_START(IDX) | 182 | #define EMPTY_START(IDX) |
| 182 | #define EMPTY_END | 183 | #define EMPTY_END |
| 183 | #define ASSERT_ENTRY(IDX, str) \ | 184 | #define ASSERT_ENTRY(IDX, str) \ |
| 184 | _Static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \ | 185 | static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \ |
| 185 | "'" str "' string takes too much space"); | 186 | "'" str "' string takes too much space"); |
| 186 | CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END) | 187 | CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END) |
| 187 | 188 | ||
| 188 | static const unsigned char bg_attribs[8] = // Color | 189 | static const unsigned char bg_attribs[8] = // Color |