summaryrefslogtreecommitdiffstats
path: root/lib/libUPnP/patches/0016-platinum-fix-compilation-by-using-the-right-suffix-f.patch
blob: 162c4c727dbc44086e8efe870765fc5158838a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
From 5b2c16078401c8de2fdd7530df8d8d485c288495 Mon Sep 17 00:00:00 2001
From: Memphiz <memphis@machzwo.de>
Date: Fri, 26 Oct 2012 18:08:59 +0200
Subject: [PATCH 16/24] platinum: fix compilation by using the right suffix
 for 64bit constants

---
 .../Platinum/Source/Devices/MediaServer/PltDidl.h  | 72 +++++++++++-----------
 1 file changed, 36 insertions(+), 36 deletions(-)

diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
index 9af9725..59d1605 100644
--- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
+++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltDidl.h
@@ -48,47 +48,47 @@
 /*----------------------------------------------------------------------
 |   constants
 +---------------------------------------------------------------------*/
-#define PLT_FILTER_MASK_ALL                         0xFFFFFFFFFFFFFFFF
+#define PLT_FILTER_MASK_ALL                         NPT_UINT64_C(0xFFFFFFFFFFFFFFFF)
 
-#define PLT_FILTER_MASK_CREATOR                     0x0000000000000001
-#define PLT_FILTER_MASK_ARTIST                      0x0000000000000002
-#define PLT_FILTER_MASK_ALBUM                       0x0000000000000004
-#define PLT_FILTER_MASK_GENRE                       0x0000000000000008
-#define PLT_FILTER_MASK_ALBUMARTURI                 0x0000000000000010
-#define PLT_FILTER_MASK_DESCRIPTION                 0x0000000000000020
-#define PLT_FILTER_MASK_SEARCHABLE                  0x0000000000000040
-#define PLT_FILTER_MASK_CHILDCOUNT                  0x0000000000000080
-#define PLT_FILTER_MASK_ORIGINALTRACK               0x0000000000000100
-#define PLT_FILTER_MASK_ACTOR                       0x0000000000000200
-#define PLT_FILTER_MASK_AUTHOR                      0x0000000000000400
-#define PLT_FILTER_MASK_DIRECTOR                    0x0000000000000800
-#define PLT_FILTER_MASK_DATE                        0x0000000000001000
-#define PLT_FILTER_MASK_PROGRAMTITLE                0x0000000000002000
-#define PLT_FILTER_MASK_SERIESTITLE                 0x0000000000004000
-#define PLT_FILTER_MASK_EPISODE                     0x0000000000008000
-#define PLT_FILTER_MASK_TITLE                       0x0000000000010000
+#define PLT_FILTER_MASK_CREATOR                     NPT_UINT64_C(0x0000000000000001)
+#define PLT_FILTER_MASK_ARTIST                      NPT_UINT64_C(0x0000000000000002)
+#define PLT_FILTER_MASK_ALBUM                       NPT_UINT64_C(0x0000000000000004)
+#define PLT_FILTER_MASK_GENRE                       NPT_UINT64_C(0x0000000000000008)
+#define PLT_FILTER_MASK_ALBUMARTURI                 NPT_UINT64_C(0x0000000000000010)
+#define PLT_FILTER_MASK_DESCRIPTION                 NPT_UINT64_C(0x0000000000000020)
+#define PLT_FILTER_MASK_SEARCHABLE                  NPT_UINT64_C(0x0000000000000040)
+#define PLT_FILTER_MASK_CHILDCOUNT                  NPT_UINT64_C(0x0000000000000080)
+#define PLT_FILTER_MASK_ORIGINALTRACK               NPT_UINT64_C(0x0000000000000100)
+#define PLT_FILTER_MASK_ACTOR                       NPT_UINT64_C(0x0000000000000200)
+#define PLT_FILTER_MASK_AUTHOR                      NPT_UINT64_C(0x0000000000000400)
+#define PLT_FILTER_MASK_DIRECTOR                    NPT_UINT64_C(0x0000000000000800)
+#define PLT_FILTER_MASK_DATE                        NPT_UINT64_C(0x0000000000001000)
+#define PLT_FILTER_MASK_PROGRAMTITLE                NPT_UINT64_C(0x0000000000002000)
+#define PLT_FILTER_MASK_SERIESTITLE                 NPT_UINT64_C(0x0000000000004000)
+#define PLT_FILTER_MASK_EPISODE                     NPT_UINT64_C(0x0000000000008000)
+#define PLT_FILTER_MASK_TITLE                       NPT_UINT64_C(0x0000000000010000)
 
-#define PLT_FILTER_MASK_RES                         0x0000000000020000
-#define PLT_FILTER_MASK_RES_DURATION                0x0000000000040000
-#define PLT_FILTER_MASK_RES_SIZE                    0x0000000000080000
-#define PLT_FILTER_MASK_RES_PROTECTION              0x0000000000100000
-#define PLT_FILTER_MASK_RES_RESOLUTION              0x0000000000200000
-#define PLT_FILTER_MASK_RES_BITRATE                 0x0000000000400000
-#define PLT_FILTER_MASK_RES_BITSPERSAMPLE           0x0000000000800000
-#define PLT_FILTER_MASK_RES_NRAUDIOCHANNELS         0x0000000001000000
-#define PLT_FILTER_MASK_RES_SAMPLEFREQUENCY         0x0000000002000000
+#define PLT_FILTER_MASK_RES                         NPT_UINT64_C(0x0000000000020000)
+#define PLT_FILTER_MASK_RES_DURATION                NPT_UINT64_C(0x0000000000040000)
+#define PLT_FILTER_MASK_RES_SIZE                    NPT_UINT64_C(0x0000000000080000)
+#define PLT_FILTER_MASK_RES_PROTECTION              NPT_UINT64_C(0x0000000000100000)
+#define PLT_FILTER_MASK_RES_RESOLUTION              NPT_UINT64_C(0x0000000000200000)
+#define PLT_FILTER_MASK_RES_BITRATE                 NPT_UINT64_C(0x0000000000400000)
+#define PLT_FILTER_MASK_RES_BITSPERSAMPLE           NPT_UINT64_C(0x0000000000800000)
+#define PLT_FILTER_MASK_RES_NRAUDIOCHANNELS         NPT_UINT64_C(0x0000000001000000)
+#define PLT_FILTER_MASK_RES_SAMPLEFREQUENCY         NPT_UINT64_C(0x0000000002000000)
 
-#define PLT_FILTER_MASK_LONGDESCRIPTION             0x0000000004000000
-#define PLT_FILTER_MASK_ICON                        0x0000000008000000
-#define PLT_FILTER_MASK_RATING                      0x0000000010000000
+#define PLT_FILTER_MASK_LONGDESCRIPTION             NPT_UINT64_C(0x0000000004000000)
+#define PLT_FILTER_MASK_ICON                        NPT_UINT64_C(0x0000000008000000)
+#define PLT_FILTER_MASK_RATING                      NPT_UINT64_C(0x0000000010000000)
 
-#define PLT_FILTER_MASK_TOC                         0x0000000020000000
-#define PLT_FILTER_MASK_SEARCHCLASS                 0x0000000040000000
-#define PLT_FILTER_MASK_REFID                       0x0000000080000000
+#define PLT_FILTER_MASK_TOC                         NPT_UINT64_C(0x0000000020000000)
+#define PLT_FILTER_MASK_SEARCHCLASS                 NPT_UINT64_C(0x0000000040000000)
+#define PLT_FILTER_MASK_REFID                       NPT_UINT64_C(0x0000000080000000)
 
-#define PLT_FILTER_MASK_LASTPOSITION                0x0000000100000000
-#define PLT_FILTER_MASK_LASTPLAYBACK                0x0000000200000000
-#define PLT_FILTER_MASK_PLAYCOUNT                   0x0000000400000000
+#define PLT_FILTER_MASK_LASTPOSITION                NPT_UINT64_C(0x0000000100000000)
+#define PLT_FILTER_MASK_LASTPLAYBACK                NPT_UINT64_C(0x0000000200000000)
+#define PLT_FILTER_MASK_PLAYCOUNT                   NPT_UINT64_C(0x0000000400000000)
 
 #define PLT_FILTER_FIELD_TITLE                      "dc:title"
 #define PLT_FILTER_FIELD_CREATOR                    "dc:creator"
-- 
1.7.11.msysgit.0