[vlc-devel] [PATCH 2/3] aribb25: use PCSC.framework on MacOS X

Jean-Baptiste Kempf jb at videolan.org
Tue Nov 4 00:07:04 CET 2014


Thanks a lot!

On 03 Nov, Sean McGovern wrote :
> ++],[test "$SYS" = macosx],[
> ++  AC_MSG_CHECKING([for PCSC.framework])
> ++  gt_save_LIBS=$LIBS
> ++  LIBS="$LIBS -Wl,-framework -Wl,PCSC"
> ++  AC_TRY_LINK([#include <PCSC/winscard.h>],
> ++    [SCardUnload()],
> ++  AC_MSG_RESULT([yes]),
> ++  AC_MSG_RESULT([no]))
> ++  LIBS="$gt_save_LIBS"
> ++  AC_SUBST(PCSC_LIBS, ["-Wl,-framework -Wl,PCSC"])

I think you should add the Framework PATH until <PCSC/ to the CFLAGS

> ++#ifdef __APPLE__
> ++#include <PCSC/winscard.h>
> ++#include <PCSC/wintypes.h>
> ++#else
> + #include <winscard.h>
> ++#endif

So that you could only do this:
#include <wintypes.h>
#include <winscard.h>

For all OSes.

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list