diff --git a/include/private/vkd3d_test.h b/include/private/vkd3d_test.h index e0224143..fd5e331a 100644 --- a/include/private/vkd3d_test.h +++ b/include/private/vkd3d_test.h @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -91,7 +92,7 @@ static struct } vkd3d_test_state; static void VKD3D_PRINTF_FUNC(3, 4) VKD3D_UNUSED -vkd3d_test_ok(unsigned int line, int result, const char *fmt, ...) +vkd3d_test_ok(unsigned int line, bool result, const char *fmt, ...) { if (result) { @@ -111,7 +112,7 @@ vkd3d_test_ok(unsigned int line, int result, const char *fmt, ...) } static void VKD3D_PRINTF_FUNC(3, 4) VKD3D_UNUSED -vkd3d_test_todo(unsigned int line, int result, const char *fmt, ...) +vkd3d_test_todo(unsigned int line, bool result, const char *fmt, ...) { va_list args; @@ -180,4 +181,4 @@ int main(void) return vkd3d_test_state.failure_count || vkd3d_test_state.todo_success_count; } -#endif /* __VKD3D_TEST__H */ +#endif /* __VKD3D_TEST_H */ diff --git a/tests/d3d12.c b/tests/d3d12.c index 8cd0d84a..94fc87fb 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -68,7 +68,7 @@ static ULONG get_refcount_(IUnknown *iface) } #define check_interface(a, b, c) check_interface_(__LINE__, (IUnknown *)a, b, c) -static void check_interface_(unsigned int line, IUnknown *iface, REFIID riid, BOOL supported) +static void check_interface_(unsigned int line, IUnknown *iface, REFIID riid, bool supported) { HRESULT hr, expected_hr; IUnknown *unk; @@ -223,7 +223,7 @@ static HANDLE create_thread(thread_main_pfn main_pfn, void *user_data) return CreateThread(NULL, 0, test_thread_main, data, 0, NULL); } -static BOOL join_thread(HANDLE thread) +static bool join_thread(HANDLE thread) { int ret; @@ -266,7 +266,7 @@ static HANDLE create_thread(thread_main_pfn main_pfn, void *user_data) return thread; } -static BOOL join_thread(HANDLE untyped_thread) +static bool join_thread(HANDLE untyped_thread) { pthread_t *thread = untyped_thread; int rc;