[INCLUDE/WINE][USER32_APITEST] Add ARRAY_SIZE to test.h and remove it from RealGetWin...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 May 2018 03:05:33 +0000 (04:05 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 May 2018 03:05:33 +0000 (04:05 +0100)
modules/rostests/apitests/user32/RealGetWindowClass.c
sdk/include/reactos/wine/test.h

index 856c28c..e5274d5 100644 (file)
@@ -7,8 +7,6 @@
 
 #include "precomp.h"
 
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-
 static PWSTR ControlsList[] =
 {
   L"Button\0",
index 25c4ff5..0b4c540 100644 (file)
@@ -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