include: Add a strcmpW-equivalent function usable in tests.
This commit is contained in:
parent
2902d8090a
commit
bc07b48b38
@ -65,6 +65,14 @@ extern void winetest_wait_child_process( HANDLE process );
|
|||||||
extern const char *wine_dbgstr_wn( const WCHAR *str, int n );
|
extern const char *wine_dbgstr_wn( const WCHAR *str, int n );
|
||||||
static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
|
static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); }
|
||||||
|
|
||||||
|
/* strcmpW is avaiable for tests compiled under Wine, but not in standalone
|
||||||
|
* builds under Windows, so we reimplement it under a different name. */
|
||||||
|
static inline int winetest_strcmpW( const WCHAR *str1, const WCHAR *str2 )
|
||||||
|
{
|
||||||
|
while (*str1 && (*str1 == *str2)) { str1++; str2++; }
|
||||||
|
return *str1 - *str2;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef STANDALONE
|
#ifdef STANDALONE
|
||||||
#define START_TEST(name) \
|
#define START_TEST(name) \
|
||||||
static void func_##name(void); \
|
static void func_##name(void); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user