[Mesa-dev] [PATCH v3 36/48] glsl/tests: define ssize_t on windows

Dylan Baker dylan at pnwbakers.com
Tue Aug 7 00:51:16 UTC 2018


---
 src/compiler/glsl/tests/blob_test.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compiler/glsl/tests/blob_test.c b/src/compiler/glsl/tests/blob_test.c
index 1cc97236e7e..21b8b1efdc1 100644
--- a/src/compiler/glsl/tests/blob_test.c
+++ b/src/compiler/glsl/tests/blob_test.c
@@ -28,6 +28,10 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
 
 #include "util/ralloc.h"
 #include "blob.h"
-- 
2.18.0



More information about the mesa-dev mailing list