[vlc-devel] [PATCH 4/4] contrib: dvdpsi: force _UNICODE for Windows Store builds
Steve Lhomme
robux4 at ycbcr.xyz
Tue Mar 19 08:00:52 CET 2019
On 3/18/2019 4:43 PM, Jean-Baptiste Kempf wrote:
> Why is that -D_UNICODE is all contribs?
I don't understand the question. You mean why isn't the _UNICODE in all
contribs ? Or why is there _UNICODE in contribs ?
From what I understood _UNICODE mostly influences the behaviour of
tchar and all runtime APIs that may understand it. Most of the contribs
do not use this at all. Grepping the contribs (that are built on
Windows) I only found these 3 that define _UNICODE (in their MSVC
projects). Although I did not find any use of tchar in them. It seems
more a conservative approach to define it as well as UNICODE. For now I
think we should be conservative.
>
> On Mon, 18 Mar 2019, at 15:38, Steve Lhomme wrote:
>> as done in the MSVC build files.
>>
>> It should only affect tchar based API calls which don't seem to be used, but
>> since they do it.
>> ---
>> contrib/src/dvbpsi/rules.mak | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/contrib/src/dvbpsi/rules.mak b/contrib/src/dvbpsi/rules.mak
>> index 518949e11a..372b77ebdc 100644
>> --- a/contrib/src/dvbpsi/rules.mak
>> +++ b/contrib/src/dvbpsi/rules.mak
>> @@ -8,6 +8,11 @@ ifeq ($(call need_pkg,"libdvbpsi >= 1.2.0"),)
>> PKGS_FOUND += dvbpsi
>> endif
>>
>> +DVBPSI_CFLAGS = $(CFLAGS)
>> +ifdef HAVE_WINSTORE
>> +DVBPSI_CFLAGS += -D_UNICODE
>> +endif
>> +
>> $(TARBALLS)/libdvbpsi-$(DVBPSI_VERSION).tar.bz2:
>> $(call download,$(DVBPSI_URL))
>>
>> @@ -23,6 +28,6 @@ libdvbpsi: libdvbpsi-$(DVBPSI_VERSION).tar.bz2 .sum-dvbpsi
>> $(MOVE)
>>
>> .dvbpsi: libdvbpsi
>> - cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
>> + cd $< && $(HOSTVARS) CFLAGS="$(DVBPSI_CFLAGS)" ./configure $(HOSTCONF)
>> cd $< && $(MAKE) install
>> touch $@
>> --
>> 2.17.1
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> --
> Jean-Baptiste Kempf - President
> +33 672 704 734
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list