Skip to content
Snippets Groups Projects
Commit fec1fa51 authored by sapier's avatar sapier
Browse files

Fix macro ARRAYSIZE name collision on windows

parent a0dd2d89
Branches
Tags
No related merge requests found
......@@ -141,7 +141,7 @@ namespace con {
class Connection;
}
#define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
#define CI_ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
enum ClientState
{
......@@ -433,7 +433,7 @@ class ClientInterface {
{ assert(m_env == 0); m_env = env; }
static std::string state2Name(ClientState state) {
assert((int) state < ARRAYSIZE(statenames));
assert((int) state < CI_ARRAYSIZE(statenames));
return statenames[state];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment