per POSIX, limits.h may define PAGE_SIZE when the value is not indeterminate

Cc: Scott D Phillips <scott.d.phill...@intel.com>
Signed-off-by: Jon Turney <jon.tur...@dronecode.org.uk>
---
 src/util/tests/vma/vma_random_test.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/tests/vma/vma_random_test.cpp 
b/src/util/tests/vma/vma_random_test.cpp
index de887fead3..c08f3751a4 100644
--- a/src/util/tests/vma/vma_random_test.cpp
+++ b/src/util/tests/vma/vma_random_test.cpp
@@ -40,6 +40,7 @@
 
 namespace {
 
+#undef PAGE_SIZE
 static const uint64_t PAGE_SIZE = 4096;
 
 struct allocation {
-- 
2.17.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to