diff --git a/libpcscxx.spec.in b/libpcscxx.spec.in index 5b8b705..4ef9c7c 100644 --- a/libpcscxx.spec.in +++ b/libpcscxx.spec.in @@ -10,9 +10,9 @@ BuildRequires: subversion gcc-c++ doxygen graphviz texlive automake autoconf lib BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: cppunit-devel openssl-devel -%elseif 0%{?suse_version} || 0%{?sles_version} +%else%if 0%{?suse_version} || 0%{?sles_version} BuildRequires: libcppunit-devel libopenssl-devel -%endif +%endif%endif %description diff --git a/src/pcsc.hxx b/src/pcsc.hxx index 0ec8190..544f5fd 100644 --- a/src/pcsc.hxx +++ b/src/pcsc.hxx @@ -536,7 +536,7 @@ namespace pcsc { //! @c false if last operation was not successful operator bool() const { -#ifdef WIN32 +#ifdef WIN32 return (_state>>30&3)==0; #else return _state==SCARD_S_SUCCESS;