From 37fb9c0cfdaf9cb67a527f37a9bfce8b1c616b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 25 Jan 2013 14:36:03 +0000 Subject: [PATCH] fix fedora-18 bug; closes #24 --- libpcscxx.spec.in | 4 ++-- src/pcsc.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;