mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 00:36:43 +00:00
#ifdef out the tests if compiling with the Platform SDK headers since
they are missing TIME_FIELDS.
This commit is contained in:
parent
5c033dad79
commit
f7478816d4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user