[0.4.10][XDK][PSDK][WINE] Unify ARRAY_SIZE definition for Wine modules.

part of CORE-15127

picked from:
0.4.11-dev-258-g 82faa151e5
This commit is contained in:
Joachim Henze 2022-03-13 21:41:21 +01:00
parent 82f6344ee0
commit 8b9811a62b
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