[XDK][PSDK][WINE] Unify ARRAY_SIZE definition for Wine modules. CORE-15127

This commit is contained in:
Amine Khaldi
2018-09-30 23:57:08 +01:00
parent ccde12483f
commit 82faa151e5
13 changed files with 4 additions and 24 deletions

View File

@@ -4308,6 +4308,10 @@ typedef struct _TP_CALLBACK_ENVIRON_V1 {
} TP_CALLBACK_ENVIRON_V1, TP_CALLBACK_ENVIRON, *PTP_CALLBACK_ENVIRON;
#endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN7) */
#ifdef __WINESRC__
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif