[vlc-devel] [PATCH 2/2] configure: use WINSTORECOMPAT when building for Windows Store
Rémi Denis-Courmont
remi at remlab.net
Mon Mar 18 16:29:59 CET 2019
Le lundi 18 mars 2019, 16:39:13 EET Steve Lhomme a écrit :
> We may use some forbidden APIs that are actually usable via
> WindowsStoreCompat
>
> GetACP in the core, for example.
> ---
> configure.ac | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index c878534912..b7b33f23e6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -339,9 +339,13 @@ AS_IF([test "${SYS}" = "mingw32"],[
> AS_IF([test "${enable_winstore_app}" = "yes"], [
> vlc_winstore_app=1
> LIBCOM=""
> - VLC_ADD_LIBS([libvlccore], [-lruntimeobject])
> - AC_LIBOBJ([gai_strerror])
> - ],[])
> + AX_APPEND_FLAG([-DWINSTORECOMPAT],[CFLAGS])
> + AX_APPEND_FLAG([-DWINSTORECOMPAT],[CPPFLAGS])
> + AX_APPEND_FLAG([-DWINSTORECOMPAT],[CXXFLAGS])
> + AX_APPEND_FLAG([-lwinstorecompat], [LDFLAGS])
That looks like it'll define the macro twice. Also, why not AH_something?
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list