external/icu/UnpackedTarball_icu.mk            |    1 +
 external/icu/icu4c-58-icu13329-xlocale.patch.1 |   14 ++++++++++++++
 include/sal/types.h                            |    2 ++
 3 files changed, 17 insertions(+)

New commits:
commit 81dc13dc71045a7d6c3be2f980928544e6385844
Author: Eike Rathke <[email protected]>
Date:   Wed Sep 13 13:42:29 2017 +0200

    icu: do not include non-standardized xlocale.h if U_PLATFORM_IS_LINUX_BASED
    
    ... should be more platforms ... but be conservative.
    U_PLATFORM_IMPLEMENTS_POSIX does not hold what it promises.
    
    "The file and this data structure is not standardized.  Don't rely on it.  
It
    can go away without warning."
    
    ...
    
    And since glibc 2.26 it's gone.
    
    https://ssl.icu-project.org/trac/ticket/13329
    
    Change-Id: I4c1f6130571f5d094cb35ce70e4d333763cee32a
    (cherry picked from commit 9e399bc613bb4ea1470bd52c64af920d4e9bc39b)
    Reviewed-on: https://gerrit.libreoffice.org/46584
    Reviewed-by: Jan Holesovsky <[email protected]>
    Tested-by: Jan Holesovsky <[email protected]>
    (cherry picked from commit 5bbe46ee00921586b9b72297e7be9048e0e921e9)

diff --git a/external/icu/UnpackedTarball_icu.mk 
b/external/icu/UnpackedTarball_icu.mk
index f1658a229586..1254d6fb993c 100644
--- a/external/icu/UnpackedTarball_icu.mk
+++ b/external/icu/UnpackedTarball_icu.mk
@@ -29,6 +29,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,icu,\
        external/icu/khmerbreakengine.patch \
        external/icu/icu4c-changeset-39671.patch.1 \
        external/icu/icu4c-changeset-40324.patch.1 \
+       external/icu/icu4c-58-icu13329-xlocale.patch.1 \
 ))
 
 $(eval $(call 
gb_UnpackedTarball_add_file,icu,source/data/brkitr/khmerdict.dict,external/icu/khmerdict.dict))
diff --git a/external/icu/icu4c-58-icu13329-xlocale.patch.1 
b/external/icu/icu4c-58-icu13329-xlocale.patch.1
new file mode 100644
index 000000000000..d9168c1bd1eb
--- /dev/null
+++ b/external/icu/icu4c-58-icu13329-xlocale.patch.1
@@ -0,0 +1,14 @@
+# xlocale.h is gone with glibc 2.26 and should never had been included.
+# https://ssl.icu-project.org/trac/ticket/13329
+diff -ur icu.org/source/i18n/digitlst.cpp icu/source/i18n/digitlst.cpp
+--- icu.org/source/i18n/digitlst.cpp   2016-10-17 10:40:38.000000000 +0530
++++ icu/source/i18n/digitlst.cpp       2017-12-16 10:26:56.477053596 +0530
+@@ -63,6 +63,8 @@
+ #if U_USE_STRTOD_L && !U_PLATFORM_USES_ONLY_WIN32_API
+ # if U_PLATFORM == U_PF_CYGWIN
+ #   include <locale.h>
++# elif U_PLATFORM_IS_LINUX_BASED
++#   include <ctype.h>    // should be for all POSIX.2008 compliant platforms, 
but..
+ # else
+ #   include <xlocale.h>
+ # endif
commit 0cbb2e661b51353751d3eed82aeea3dbdd44c05e
Author: Stephan Bergmann <[email protected]>
Date:   Fri Jan 27 18:04:53 2017 +0100

    GCC 7 supports [[fallthrough]]
    
    Change-Id: Ic6fb995a76a30b60b597005e714de03d43c36a7c
    (cherry picked from commit 9ee0f108ca104ec76d2d73220686fb10c89e78e8)
    Reviewed-on: https://gerrit.libreoffice.org/47307
    Reviewed-by: Jan Holesovsky <[email protected]>
    Tested-by: Jan Holesovsky <[email protected]>
    (cherry picked from commit 8069d8bf63c7dcee4d7724ca943c6dd5739a94f4)

diff --git a/include/sal/types.h b/include/sal/types.h
index 3fc2be349ceb..0aee64874fb6 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -448,6 +448,8 @@ namespace css = ::com::sun::star;
 #if defined LIBO_INTERNAL_ONLY
 #if defined __clang__
 #define SAL_FALLTHROUGH [[clang::fallthrough]]
+#elif defined __GNUC__ && __GNUC__ >= 7
+#define SAL_FALLTHROUGH [[fallthrough]]
 #else
 #define SAL_FALLTHROUGH
 #endif
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to