From f7478816d449ad3b2464660655095dfccb0aa5a2 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sat, 30 Oct 2004 02:10:38 +0000 Subject: [PATCH] #ifdef out the tests if compiling with the Platform SDK headers since they are missing TIME_FIELDS. --- dlls/ntdll/tests/time.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/ntdll/tests/time.c b/dlls/ntdll/tests/time.c index 5672de579bf..f4b89d2f93e 100644 --- a/dlls/ntdll/tests/time.c +++ b/dlls/ntdll/tests/time.c @@ -19,6 +19,9 @@ */ #include "ntdll_test.h" + +#ifdef __WINE_WINTERNL_H + #define TICKSPERSEC 10000000 #define TICKSPERMSEC 10000 #define SECSPERDAY 86400 @@ -79,11 +82,14 @@ static void test_pRtlTimeToTimeFields() litime.QuadPart += (LONGLONG) tftest.Day * TICKSPERSEC * SECSPERDAY; } } +#endif START_TEST(time) { +#ifdef __WINE_WINTERNL_H HMODULE mod = GetModuleHandleA("ntdll.dll"); pRtlTimeToTimeFields = (void *)GetProcAddress(mod,"RtlTimeToTimeFields"); if (pRtlTimeToTimeFields) test_pRtlTimeToTimeFields(); +#endif } -- 2.11.4.GIT