gcc suggests explicit braces to avoid ambiguous `else'
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@421
7f0cb862-5218-0410-a997-
914c9d46530a
break;
}
- if( GetSystemMetrics( SM_SWAPBUTTON ) )
- if( button == GLUT_LEFT_BUTTON )
+ if ( GetSystemMetrics( SM_SWAPBUTTON ) )
+ {
+ if ( button == GLUT_LEFT_BUTTON )
button = GLUT_RIGHT_BUTTON;
- else if( button == GLUT_RIGHT_BUTTON )
+ else
+ if ( button == GLUT_RIGHT_BUTTON )
button = GLUT_LEFT_BUTTON;
+ }
if( button == -1 )
return DefWindowProc( hWnd, uMsg, lParam, wParam );