ddk/ntddk.h (alternative 3)

Francois Gouget fgouget at free.fr
Tue Aug 31 11:05:45 CDT 2004


This last alternative simply #ifdefs out the tests if we're compiling
with the Microsoft headers. IMO this is the worst option as it means we
won't test the RtlBitMap APIs unless one cross-compiles the test or gets
it to compile with the Wine headers.

This is still better than the current situation as it at least lets us
compile and link the rest of the tests with the Microsoft SDK headers.
(which is something all the other options let us do too)


Changelog:

 * dlls/ntdll/tests/rtlbitmap.c

   Disable the RtlBitMap tests if compiling with the Microsoft headers
as they are missing critical structure and API declarations.


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                            1 + e ^ ( i * pi ) = 0
-------------- next part --------------
Index: dlls/ntdll/tests/rtlbitmap.c
===================================================================
RCS file: /var/cvs/wine/dlls/ntdll/tests/rtlbitmap.c,v
retrieving revision 1.8
diff -u -r1.8 rtlbitmap.c
--- dlls/ntdll/tests/rtlbitmap.c	23 Aug 2004 18:52:54 -0000	1.8
+++ dlls/ntdll/tests/rtlbitmap.c	31 Aug 2004 14:45:05 -0000
@@ -23,6 +23,8 @@
 
 #include "ntdll_test.h"
 
+#ifdef WINE_TEB_DEFINED
+
 /* Function ptrs for ordinal calls */
 static HMODULE hntdll = 0;
 static VOID (WINAPI *pRtlInitializeBitMap)(PRTL_BITMAP,LPBYTE,ULONG);
@@ -608,9 +610,11 @@
   }
 
 }
+#endif
 
 START_TEST(rtlbitmap)
 {
+#ifdef WINE_TEB_DEFINED
   InitFunctionPtrs();
 
   if (pRtlInitializeBitMap)
@@ -632,4 +636,5 @@
     test_RtlFindSetRuns();
     test_RtlFindClearRuns();
   }
+#endif
 }


More information about the wine-patches mailing list