Skip to content
Snippets Groups Projects
Commit c8e05a93 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

include: Avoid redefining ARRAY_SIZE().


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

Signed-off-by: default avatarJózef Kucia <jkucia@codeweavers.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent b402ae96
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment