microsoft: Fix comma in variadic macro for MSVC

New preprocessor seems to be enabled by default when C17 mode is active.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8772>
This commit is contained in:
James Park 2021-01-28 08:37:12 -08:00 committed by Marge Bot
parent 3c7062417b
commit bef0af3f21

View file

@ -65,14 +65,14 @@ clc_free_spirv_binary(struct spirv_binary *spvbin);
#define clc_log(logger, level, fmt, ...) do { \
if (!logger || !logger->level) break; \
char *msg = NULL; \
asprintf(&msg, fmt, __VA_ARGS__); \
asprintf(&msg, fmt, ##__VA_ARGS__); \
assert(msg); \
logger->level(logger->priv, msg); \
free(msg); \
} while (0)
#define clc_error(logger, fmt, ...) clc_log(logger, error, fmt, __VA_ARGS__)
#define clc_warning(logger, fmt, ...) clc_log(logger, warning, fmt, __VA_ARGS__)
#define clc_error(logger, fmt, ...) clc_log(logger, error, fmt, ##__VA_ARGS__)
#define clc_warning(logger, fmt, ...) clc_log(logger, warning, fmt, ##__VA_ARGS__)
#ifdef __cplusplus
}