diff options
Diffstat (limited to 'lib/libUPnP/patches/0016-osx-fix-compilation-by-using-the-right-suffix-for-64.patch')
-rw-r--r-- | lib/libUPnP/patches/0016-osx-fix-compilation-by-using-the-right-suffix-for-64.patch | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/lib/libUPnP/patches/0016-osx-fix-compilation-by-using-the-right-suffix-for-64.patch b/lib/libUPnP/patches/0016-osx-fix-compilation-by-using-the-right-suffix-for-64.patch new file mode 100644 index 0000000000..3c24bff966 --- /dev/null +++ b/lib/libUPnP/patches/0016-osx-fix-compilation-by-using-the-right-suffix-for-64.patch @@ -0,0 +1,101 @@ +From 152462afb82c13dd2a723f1c256c07e86457ccc3 Mon Sep 17 00:00:00 2001 +From: Memphiz <memphis@machzwo.de> +Date: Fri, 26 Oct 2012 18:08:59 +0200 +Subject: [PATCH 16/21] [osx] - 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 + |