Commit 6cad7dd2 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winnt.h: Add ARRAYSIZE macro.

parent 940c249b
...@@ -796,6 +796,7 @@ typedef struct _MEMORY_BASIC_INFORMATION ...@@ -796,6 +796,7 @@ typedef struct _MEMORY_BASIC_INFORMATION
#define CONTAINING_RECORD(address, type, field) \ #define CONTAINING_RECORD(address, type, field) \
((type *)((PCHAR)(address) - offsetof(type, field))) ((type *)((PCHAR)(address) - offsetof(type, field)))
#define ARRAYSIZE(x) (sizeof(x) / sizeof((x)[0]))
#ifdef __WINESRC__ #ifdef __WINESRC__
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) # define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment