Module: Mesa
Branch: master
Commit: a216aea7afeee2b4d3e8641b15b057a821c46098
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a216aea7afeee2b4d3e8641b15b057a821c46098

Author: Dylan Baker <[email protected]>
Date:   Mon Jun 11 15:11:07 2018 -0700

tests/vma: fix build with MSVC

Reviewed-by: Eric Anholt <[email protected]>

---

 src/util/tests/vma/vma_random_test.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to