Merge pull request #26220 from 78andyp/blurayfixes
[xbmc.git] / lib / libUPnP / patches / 0016-platinum-fix-compilation-by-using-the-right-suffix-f.patch
blob162c4c727dbc44086e8efe870765fc5158838a8c
1 From 5b2c16078401c8de2fdd7530df8d8d485c288495 Mon Sep 17 00:00:00 2001
2 From: Memphiz <memphis@machzwo.de>
3 Date: Fri, 26 Oct 2012 18:08:59 +0200
4 Subject: [PATCH 16/24] platinum: fix compilation by using the right suffix
5 for 64bit constants
7 ---
8 .../Platinum/Source/Devices/MediaServer/PltDidl.h | 72 +++++++++++-----------
9 1 file changed, 36 insertions(+), 36 deletions(-)
11 diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
12 index 9af9725..59d1605 100644
13 --- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
14 +++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
15 @@ -48,47 +48,47 @@
16 /*----------------------------------------------------------------------
17 | constants
18 +---------------------------------------------------------------------*/
19 -#define PLT_FILTER_MASK_ALL 0xFFFFFFFFFFFFFFFF
20 +#define PLT_FILTER_MASK_ALL NPT_UINT64_C(0xFFFFFFFFFFFFFFFF)
22 -#define PLT_FILTER_MASK_CREATOR 0x0000000000000001
23 -#define PLT_FILTER_MASK_ARTIST 0x0000000000000002
24 -#define PLT_FILTER_MASK_ALBUM 0x0000000000000004
25 -#define PLT_FILTER_MASK_GENRE 0x0000000000000008
26 -#define PLT_FILTER_MASK_ALBUMARTURI 0x0000000000000010
27 -#define PLT_FILTER_MASK_DESCRIPTION 0x0000000000000020
28 -#define PLT_FILTER_MASK_SEARCHABLE 0x0000000000000040
29 -#define PLT_FILTER_MASK_CHILDCOUNT 0x0000000000000080
30 -#define PLT_FILTER_MASK_ORIGINALTRACK 0x0000000000000100
31 -#define PLT_FILTER_MASK_ACTOR 0x0000000000000200
32 -#define PLT_FILTER_MASK_AUTHOR 0x0000000000000400
33 -#define PLT_FILTER_MASK_DIRECTOR 0x0000000000000800
34 -#define PLT_FILTER_MASK_DATE 0x0000000000001000
35 -#define PLT_FILTER_MASK_PROGRAMTITLE 0x0000000000002000
36 -#define PLT_FILTER_MASK_SERIESTITLE 0x0000000000004000
37 -#define PLT_FILTER_MASK_EPISODE 0x0000000000008000
38 -#define PLT_FILTER_MASK_TITLE 0x0000000000010000
39 +#define PLT_FILTER_MASK_CREATOR NPT_UINT64_C(0x0000000000000001)
40 +#define PLT_FILTER_MASK_ARTIST NPT_UINT64_C(0x0000000000000002)
41 +#define PLT_FILTER_MASK_ALBUM NPT_UINT64_C(0x0000000000000004)
42 +#define PLT_FILTER_MASK_GENRE NPT_UINT64_C(0x0000000000000008)
43 +#define PLT_FILTER_MASK_ALBUMARTURI NPT_UINT64_C(0x0000000000000010)
44 +#define PLT_FILTER_MASK_DESCRIPTION NPT_UINT64_C(0x0000000000000020)
45 +#define PLT_FILTER_MASK_SEARCHABLE NPT_UINT64_C(0x0000000000000040)
46 +#define PLT_FILTER_MASK_CHILDCOUNT NPT_UINT64_C(0x0000000000000080)
47 +#define PLT_FILTER_MASK_ORIGINALTRACK NPT_UINT64_C(0x0000000000000100)
48 +#define PLT_FILTER_MASK_ACTOR NPT_UINT64_C(0x0000000000000200)
49 +#define PLT_FILTER_MASK_AUTHOR NPT_UINT64_C(0x0000000000000400)
50 +#define PLT_FILTER_MASK_DIRECTOR NPT_UINT64_C(0x0000000000000800)
51 +#define PLT_FILTER_MASK_DATE NPT_UINT64_C(0x0000000000001000)
52 +#define PLT_FILTER_MASK_PROGRAMTITLE NPT_UINT64_C(0x0000000000002000)
53 +#define PLT_FILTER_MASK_SERIESTITLE NPT_UINT64_C(0x0000000000004000)
54 +#define PLT_FILTER_MASK_EPISODE NPT_UINT64_C(0x0000000000008000)
55 +#define PLT_FILTER_MASK_TITLE NPT_UINT64_C(0x0000000000010000)
57 -#define PLT_FILTER_MASK_RES 0x0000000000020000
58 -#define PLT_FILTER_MASK_RES_DURATION 0x0000000000040000
59 -#define PLT_FILTER_MASK_RES_SIZE 0x0000000000080000
60 -#define PLT_FILTER_MASK_RES_PROTECTION 0x0000000000100000
61 -#define PLT_FILTER_MASK_RES_RESOLUTION 0x0000000000200000
62 -#define PLT_FILTER_MASK_RES_BITRATE 0x0000000000400000
63 -#define PLT_FILTER_MASK_RES_BITSPERSAMPLE 0x0000000000800000
64 -#define PLT_FILTER_MASK_RES_NRAUDIOCHANNELS 0x0000000001000000
65 -#define PLT_FILTER_MASK_RES_SAMPLEFREQUENCY 0x0000000002000000
66 +#define PLT_FILTER_MASK_RES NPT_UINT64_C(0x0000000000020000)
67 +#define PLT_FILTER_MASK_RES_DURATION NPT_UINT64_C(0x0000000000040000)
68 +#define PLT_FILTER_MASK_RES_SIZE NPT_UINT64_C(0x0000000000080000)
69 +#define PLT_FILTER_MASK_RES_PROTECTION NPT_UINT64_C(0x0000000000100000)
70 +#define PLT_FILTER_MASK_RES_RESOLUTION NPT_UINT64_C(0x0000000000200000)
71 +#define PLT_FILTER_MASK_RES_BITRATE NPT_UINT64_C(0x0000000000400000)
72 +#define PLT_FILTER_MASK_RES_BITSPERSAMPLE NPT_UINT64_C(0x0000000000800000)
73 +#define PLT_FILTER_MASK_RES_NRAUDIOCHANNELS NPT_UINT64_C(0x0000000001000000)
74 +#define PLT_FILTER_MASK_RES_SAMPLEFREQUENCY NPT_UINT64_C(0x0000000002000000)
76 -#define PLT_FILTER_MASK_LONGDESCRIPTION 0x0000000004000000
77 -#define PLT_FILTER_MASK_ICON 0x0000000008000000
78 -#define PLT_FILTER_MASK_RATING 0x0000000010000000
79 +#define PLT_FILTER_MASK_LONGDESCRIPTION NPT_UINT64_C(0x0000000004000000)
80 +#define PLT_FILTER_MASK_ICON NPT_UINT64_C(0x0000000008000000)
81 +#define PLT_FILTER_MASK_RATING NPT_UINT64_C(0x0000000010000000)
83 -#define PLT_FILTER_MASK_TOC 0x0000000020000000
84 -#define PLT_FILTER_MASK_SEARCHCLASS 0x0000000040000000
85 -#define PLT_FILTER_MASK_REFID 0x0000000080000000
86 +#define PLT_FILTER_MASK_TOC NPT_UINT64_C(0x0000000020000000)
87 +#define PLT_FILTER_MASK_SEARCHCLASS NPT_UINT64_C(0x0000000040000000)
88 +#define PLT_FILTER_MASK_REFID NPT_UINT64_C(0x0000000080000000)
90 -#define PLT_FILTER_MASK_LASTPOSITION 0x0000000100000000
91 -#define PLT_FILTER_MASK_LASTPLAYBACK 0x0000000200000000
92 -#define PLT_FILTER_MASK_PLAYCOUNT 0x0000000400000000
93 +#define PLT_FILTER_MASK_LASTPOSITION NPT_UINT64_C(0x0000000100000000)
94 +#define PLT_FILTER_MASK_LASTPLAYBACK NPT_UINT64_C(0x0000000200000000)
95 +#define PLT_FILTER_MASK_PLAYCOUNT NPT_UINT64_C(0x0000000400000000)
97 #define PLT_FILTER_FIELD_TITLE "dc:title"
98 #define PLT_FILTER_FIELD_CREATOR "dc:creator"
99 --
100 1.7.11.msysgit.0