fix fedora-18 bug; closes #24

master
Marc Wäckerlin 12 years ago
parent 7c027318ce
commit 37fb9c0cfd
  1. 4
      libpcscxx.spec.in
  2. 2
      src/pcsc.hxx

@ -10,9 +10,9 @@ BuildRequires: subversion gcc-c++ doxygen graphviz texlive automake autoconf lib
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: cppunit-devel openssl-devel 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 BuildRequires: libcppunit-devel libopenssl-devel
%endif %endif%endif
%description %description

@ -536,7 +536,7 @@ namespace pcsc {
//! @c false if last operation was not successful //! @c false if last operation was not successful
operator bool() const { operator bool() const {
#ifdef WIN32 #ifdef WIN32
return (_state>>30&3)==0; return (_state>>30&3)==0;
#else #else
return _state==SCARD_S_SUCCESS; return _state==SCARD_S_SUCCESS;

Loading…
Cancel
Save