Skip to content

Commit fec1fa5

Browse files
sapiersapier
sapier
authored and
sapier
committedApr 20, 2014
Fix macro ARRAYSIZE name collision on windows
1 parent a0dd2d8 commit fec1fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/clientiface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ namespace con {
141141
class Connection;
142142
}
143143

144-
#define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
144+
#define CI_ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
145145

146146
enum ClientState
147147
{
@@ -433,7 +433,7 @@ class ClientInterface {
433433
{ assert(m_env == 0); m_env = env; }
434434

435435
static std::string state2Name(ClientState state) {
436-
assert((int) state < ARRAYSIZE(statenames));
436+
assert((int) state < CI_ARRAYSIZE(statenames));
437437
return statenames[state];
438438
}
439439

0 commit comments

Comments
 (0)
Please sign in to comment.