tests/vma: fix build with MSVC

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker 2018-06-11 15:11:07 -07:00
parent 5eb0f33e4f
commit a216aea7af
1 changed files with 8 additions and 0 deletions

View File

@ -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"