add #ifdef to fix compile

This commit is contained in:
ehouse 2004-06-24 05:20:28 +00:00
parent 3f3f9541b3
commit 4750280d44

View file

@ -43,7 +43,6 @@ PrefsFormHandleEvent( EventPtr event )
FormPtr form; FormPtr form;
EventType eventToPost; EventType eventToPost;
Int16 chosen; Int16 chosen;
Boolean checked;
CALLBACK_PROLOGUE(); CALLBACK_PROLOGUE();
globals = getFormRefcon(); globals = getFormRefcon();
@ -97,12 +96,14 @@ PrefsFormHandleEvent( EventPtr event )
result = true; result = true;
switch ( event->data.ctlSelect.controlID ) { switch ( event->data.ctlSelect.controlID ) {
case XW_PREFS_NOHINTS_CHECKBOX_ID: #ifdef XWFEATURE_SEARCHLIMIT
checked = getBooleanCtrl( XW_PREFS_NOHINTS_CHECKBOX_ID ); case XW_PREFS_NOHINTS_CHECKBOX_ID: {
Boolean checked = getBooleanCtrl( XW_PREFS_NOHINTS_CHECKBOX_ID );
disOrEnable( FrmGetActiveForm(), XW_PREFS_HINTRECT_CHECKBOX_ID, disOrEnable( FrmGetActiveForm(), XW_PREFS_HINTRECT_CHECKBOX_ID,
!checked ); !checked );
}
break; break;
#endif
case XW_PREFS_PHONIES_TRIGGER_ID: case XW_PREFS_PHONIES_TRIGGER_ID:
chosen = LstPopupList( state->phoniesList ); chosen = LstPopupList( state->phoniesList );
if ( chosen >= 0 ) { if ( chosen >= 0 ) {