From e3b51bcadc0bca4164c1fd1df12e52e4f69d2c26 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 31 Jul 2020 13:33:39 +0200 Subject: Remove redundant iostream inclusions --- NK_C_API.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'NK_C_API.cc') diff --git a/NK_C_API.cc b/NK_C_API.cc index 5460a92..951532b 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -20,7 +20,9 @@ */ #include "NK_C_API.h" +#ifndef NO_LOG #include +#endif #include #include "libnitrokey/NitrokeyManager.h" #include @@ -63,11 +65,15 @@ extern "C" { } catch (const DeviceCommunicationException &deviceException){ NK_last_command_status = 256-deviceException.getType(); +#ifndef NO_LOG cerr << deviceException.what() << endl; +#endif return 0; } catch (std::runtime_error &e) { - cerr << e.what() << endl; +#ifndef NO_LOG + cerr << e.what() << endl; +#endif return 0; } return 0; -- cgit v1.2.1