You second code snippet is a macro, so that your code gets replaced to:
Code:
LBG_flags->flags |= (LBGUI_PROTECTMOUSE);


which is of course rubbish. Only use the "set" macro for entities.


Always learn from history, to be sure you make the same mistakes again...