From a50619e7334ff3620034a8b2ea75ceeffd4a805a Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 29 Feb 2012 11:48:15 +0100 Subject: Fix compilation when smartcard support is disabled The addition of smartcard control to the controller doesn't handle the case when smartcard support is disabled at compile time. When this is the case, this causes compile errors. --- client/controller.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/controller.cpp') diff --git a/client/controller.cpp b/client/controller.cpp index a0269be3..e0b7fe77 100644 --- a/client/controller.cpp +++ b/client/controller.cpp @@ -334,9 +334,11 @@ bool ControllerConnection::handle_message(ControllerMsg *hdr) case CONTROLLER_DELETE_MENU: _handler->delete_menu(); break; +#if USE_SMARTCARD case CONTROLLER_ENABLE_SMARTCARD: _handler->enable_smartcard(value); break; +#endif case CONTROLLER_SEND_CAD: default: LOG_ERROR("Ignoring an unknown/SEND_CAD controller message %u", hdr->id); -- cgit