Commit 1ce73564 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

include: Add _countof macro.

parent 417e542e
......@@ -60,6 +60,9 @@ typedef struct _ldiv_t {
__msvcrt_long rem;
} ldiv_t;
#define _countof(x) (sizeof(x)/sizeof((x)[0]))
#define __max(a,b) (((a) > (b)) ? (a) : (b))
#define __min(a,b) (((a) < (b)) ? (a) : (b))
#ifndef __cplusplus
......
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