#ifdef out the tests if compiling with the Platform SDK headers since
authorFrancois Gouget <fgouget@free.fr>
Sat, 30 Oct 2004 02:10:38 +0000 (02:10 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 30 Oct 2004 02:10:38 +0000 (02:10 +0000)
they are missing TIME_FIELDS.

dlls/ntdll/tests/time.c

index 5672de579bf3867dd565483bb3d0279c354b345d..f4b89d2f93e8d433bd969d4377a2de9a024c7a01 100644 (file)
@@ -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
 }