Skip to content

Commit

Permalink
Fix macro ARRAYSIZE name collision on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Apr 20, 2014
1 parent a0dd2d8 commit fec1fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clientiface.h
Expand Up @@ -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
{
Expand Down Expand Up @@ -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];
}

Expand Down

0 comments on commit fec1fa5

Please sign in to comment.