Skip to content

Commit 2a0c991

Browse files
committed
list test: Fix build on MinGW
1 parent 652c5e0 commit 2a0c991

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/tests/list/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ if(VulkanHeaders_FOUND)
3434
endif()
3535

3636
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
37-
target_compile_options(runtime_list PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
37+
if(MSVC)
38+
target_compile_options(runtime_list PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
39+
endif()
3840
target_link_libraries(runtime_list openxr_loader opengl32)
3941
endif()
4042

src/tests/list/list.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
#include <inttypes.h>
3131
#include <vector>
3232

33+
#ifndef PRIx32
34+
#define PRIx32 "x"
35+
#endif
36+
#ifndef PRIx64
37+
#define PRIx64 "x"
38+
#endif
39+
3340
// Struct that does book keeping of what a
3441
// OpenXR application need to keep track of.
3542
struct Program {

0 commit comments

Comments
 (0)