Fix Actions CI for MSVC

Fixes #616
This commit is contained in:
Rangi
2021-01-01 21:22:17 -05:00
committed by Eldred Habert
parent 77279984a5
commit 7e3fc1db03
6 changed files with 20 additions and 7 deletions

View File

@@ -39,4 +39,11 @@
# define SSIZE_MAX INT_MAX
#endif
/* MSVC doesn't support `[static N]` for array arguments from C99 */
#ifdef _MSC_VER
# define MIN_NB_ELMS(N)
#else
# define MIN_NB_ELMS(N) static (N)
#endif
#endif /* RGBDS_PLATFORM_H */