In fact, neither of the two version would work. The correct solution is:

Code:

void myfunc()
{
if (connection & CONNECT_SERVER) {
...
}
}