From: Dylan Baker Date: Mon, 11 Jun 2018 22:11:07 +0000 (-0700) Subject: tests/vma: fix build with MSVC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a216aea7afeee2b4d3e8641b15b057a821c46098;p=mesa.git tests/vma: fix build with MSVC Reviewed-by: Eric Anholt --- diff --git a/src/util/tests/vma/vma_random_test.cpp b/src/util/tests/vma/vma_random_test.cpp index 1f194fcdf92..9246176cbf2 100644 --- a/src/util/tests/vma/vma_random_test.cpp +++ b/src/util/tests/vma/vma_random_test.cpp @@ -34,7 +34,15 @@ #include #include +#ifndef _WIN32 #include +#else +#define errx(code, msg, ...) \ + do { \ + fprintf(stderr, msg, __VA_ARGS__); \ + exit(code); \ + } while (0); +#endif #include "vma.h"