summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2014-12-04 14:03:43 -0500
committerJan Vesely <jan.vesely@rutgers.edu>2015-02-20 10:01:58 -0500
commit60f5f276a4503d333edc781f758a9e5930f4fabc (patch)
tree7a06672bdbf9ec8504b927e8e120ee2731ece2fc /tests/util
parent46b7e46847ecc4a681109696ea06a9a5459b39c8 (diff)
Use alloca instead of variable length arrays
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'tests/util')
-rwxr-xr-xtests/util/piglit-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 1c522a19a..dd618d2e4 100755
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -70,6 +70,8 @@ extern "C" {
#define snprintf _snprintf
+#define alloca _alloca
+
#define usleep(__usec) Sleep(((__usec) + 999)/1000)
#endif /* defined(_MSC_VER) */