tests/vma: fix build with MSVC
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
5eb0f33e4f
commit
a216aea7af
|
@ -34,7 +34,15 @@
|
|||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <err.h>
|
||||
#else
|
||||
#define errx(code, msg, ...) \
|
||||
do { \
|
||||
fprintf(stderr, msg, __VA_ARGS__); \
|
||||
exit(code); \
|
||||
} while (0);
|
||||
#endif
|
||||
|
||||
#include "vma.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue