Re: PCSC-lite 1.8.8 wintypes.h typedef for LPCTSTR missing on Mac OS

Ludovic Rousseau <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8CEsbwo4KWq-mhqYe3yZysTH7YR9_kwO7Hm20tsf2hReA@mail.gmail.com>
2013/8/6 Russell Rezaian <[email protected]>:
>
> Ludovic Rousseau wrote:
>>
>> 2013/8/4 Russell Rezaian <[email protected]>:
>>
>>> However, in the 1.8.8 version of PCSC-lite wintypes.h there is an ifdef
>>> for
>>> __APPLE__ and the defines for LPTSTR and LPCTSTR are only in the
>>> non-__APPLE__ else block.
>>>
>>> I think this might be a bug.
>>
>> On Mac OS X you should use the PCSC framework provided by Apple and
>> not pcsc-lite 1.8.8. pcsc-lite 1.8.8 is not supposed to be used on Mac
>> OS X.
>
> I will investigate doing a re-compile.
>
> I have been using the non-Apple provided code as it's nice to have a
> consistent version of libraries like this across many different Mac OS
> versions.
>
> The pcsc-lite 1.8.8 headers do still have __APPLE__ ifdefs in them now, and
> things do seem to have compiled successfully, and from my VERY limited
> testing so far pcsc-lite 1.8.8 does seem to work on Mac OS, hence my
> suspicion that this might have been worth reporting.

I added support of Mac OS X in revision 5505 [1] with the comment:

" Mac OS X "port"
- Define Windows types as they are defined on Mac OS X in
  /System/Library/Frameworks/PCSC.framework/Headers/wintypes.h
- Pack structures as they are packed on Mac OS X in
  /System/Library/Frameworks/PCSC.framework/Headers/pcsclite.h

With these changes it is possible to build this pcsc-lite on Mac OS X
and use it with an application built using the PCSC Framework headers
provided by Apple.

One application is to temporarily replace the Apple PCSC layer by a
better/working one. "

So yes, you should be able to build your application/library using the
pcsc-lite 1.8.8 header files.
That is not supported but if it works for you then that is fine.

Regards,

[1] http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2011-January/005059.html

-- 
 Dr. Ludovic Rousseau
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.