include: Avoid redefining ARRAY_SIZE().

winnt.h from Wine defines ARRAY_SIZE() when __WINESRC__ is defined.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2019-01-31 11:29:34 +01:00 committed by Alexandre Julliard
parent b402ae96a6
commit c8e05a93b4
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@
#include "config.h"
#include "vkd3d_windows.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
#endif
#define DIV_ROUND_UP(a, b) ((a) % (b) == 0 ? (a) / (b) : (a) / (b) + 1)