[Piglit] [PATCH v2 10/16] util: move PIGLIT_PATH_SEP to piglit-util.h

Dylan Baker dylan at pnwbakers.com
Fri Sep 30 21:17:43 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

---
 tests/util/piglit-util.c | 6 ------
 tests/util/piglit-util.h | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index 0a66a85..6ed9c9c 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -533,12 +533,6 @@ piglit_source_dir(void)
     return s;
 }
 
-#ifdef _WIN32
-#  define PIGLIT_PATH_SEP '\\'
-#else
-#  define PIGLIT_PATH_SEP '/'
-#endif
-
 size_t
 piglit_join_paths(char buf[], size_t buf_size, int n, ...)
 {
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 4328863..ac8eb88 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -131,6 +131,12 @@ ffs(int i)
 #endif /* !__MINGW32__ */
 #endif /* !HAVE_FFS*/
 
+#ifdef _WIN32
+#  define PIGLIT_PATH_SEP '\\'
+#else
+#  define PIGLIT_PATH_SEP '/'
+#endif
+
 enum piglit_result {
 	PIGLIT_PASS,
 	PIGLIT_FAIL,
-- 
git-series 0.8.10


More information about the Piglit mailing list