https://git.reactos.org/?p=reactos.git;a=commitdiff;h=41e2b83f9655acf292660f9ae6898fc34d9f98d8

commit 41e2b83f9655acf292660f9ae6898fc34d9f98d8
Author:     Amine Khaldi <[email protected]>
AuthorDate: Sun May 27 04:05:33 2018 +0100
Commit:     Amine Khaldi <[email protected]>
CommitDate: Sun May 27 04:05:33 2018 +0100

    [INCLUDE/WINE][USER32_APITEST] Add ARRAY_SIZE to test.h and remove it from 
RealGetWindowClass.c. CORE-14656
---
 modules/rostests/apitests/user32/RealGetWindowClass.c | 2 --
 sdk/include/reactos/wine/test.h                       | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/rostests/apitests/user32/RealGetWindowClass.c 
b/modules/rostests/apitests/user32/RealGetWindowClass.c
index 856c28c71f..e5274d5cc3 100644
--- a/modules/rostests/apitests/user32/RealGetWindowClass.c
+++ b/modules/rostests/apitests/user32/RealGetWindowClass.c
@@ -7,8 +7,6 @@
 
 #include "precomp.h"
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-
 static PWSTR ControlsList[] =
 {
   L"Button\0",
diff --git a/sdk/include/reactos/wine/test.h b/sdk/include/reactos/wine/test.h
index 25c4ff5681..0b4c54019c 100644
--- a/sdk/include/reactos/wine/test.h
+++ b/sdk/include/reactos/wine/test.h
@@ -155,6 +155,7 @@ extern void __winetest_cdecl winetest_trace( const char 
*msg, ... );
 #define todo_wine_if(is_todo)   todo_if((is_todo) && 
!strcmp(winetest_platform, "wine"))
 #endif
 
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 
 #ifdef NONAMELESSUNION
 # define U(x)  (x).u

Reply via email to