File lib555-missing-xlocale.patch of Package kodi.binary-addons
33
1
From: Dave Plater <davejplater@gmail.com
2
Date: 2017-09-29 11:17:22 +0200
3
Subject: input: Fix kodi.binary-addons xlocale.h issue
4
References: Packman Mailing list
5
6
Patch Locale.hh to not include xlocale.h which is long
7
depreciated and only used in apple.
8
9
Index: project/cmake/addons/build/pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh
10
===================================================================
11
--- pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh.orig 2017-09-29 11:13:15.976289827 +0200
12
+++ pvr.mediaportal.tvserver/src/lib/live555/liveMedia/include/Locale.hh 2017-09-29 12:23:38.960166506 +0200
13
14
// then you can override this by defining "XLOCALE_USED" before #including this file.
15
16
#ifdef XLOCALE_USED
17
-#undef LOCALE_NOT_USED
18
-#undef XLOCALE_NOT_USED
19
+#undef XLOCALE_USED
20
+#define XLOCALE_NOT_USED 1
21
#else
22
#if defined(__WIN32__) || defined(_WIN32)
23
#define XLOCALE_NOT_USED 1
24
25
#ifndef LOCALE_NOT_USED
26
#include <locale.h>
27
#ifndef XLOCALE_NOT_USED
28
-#include <xlocale.h> // because, on some systems, <locale.h> doesn't include <xlocale.h>; this makes sure that we get both
29
+#include <locale.h> // because, on some systems, <locale.h> doesn't include <locale.h>; this makes sure that we get both
30
#endif
31
#endif
32
33