projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eb0f33
)
tests/vma: fix build with MSVC
author
Dylan Baker
<dylan@pnwbakers.com>
Mon, 11 Jun 2018 22:11:07 +0000
(15:11 -0700)
committer
Dylan Baker
<dylan@pnwbakers.com>
Fri, 3 May 2019 17:58:27 +0000
(10:58 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/util/tests/vma/vma_random_test.cpp
patch
|
blob
|
history
diff --git
a/src/util/tests/vma/vma_random_test.cpp
b/src/util/tests/vma/vma_random_test.cpp
index 1f194fcdf9221187b6efaeb459709f0642f2a304..9246176cbf2f220c245af0f878b8d074a81e6bdc 100644
(file)
--- a/
src/util/tests/vma/vma_random_test.cpp
+++ b/
src/util/tests/vma/vma_random_test.cpp
@@
-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"