[Piglit] [PATCH] shader_runner: Work around MSVC lacking strtoll

Ian Romanick idr at freedesktop.org
Wed Oct 29 14:34:10 PDT 2014


From: Ian Romanick <ian.d.romanick at intel.com>

Does piglit have a place where wrapper functions like this should live?

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85528
Cc: vlee at freedesktop.org
---
 tests/shaders/shader_runner.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 1f93216..465d042 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -31,6 +31,10 @@
 #include <libgen.h>
 #endif
 
+#if defined(_MSC_VER)
+#define strtoll _strtoi64
+#endif
+
 #include "piglit-util-gl.h"
 #include "piglit-vbo.h"
 
-- 
1.8.1.4



More information about the Piglit mailing list