unbreak after libc++ update by defining _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS

as these are still used by libreoffice
This commit is contained in:
robert 2018-09-11 18:51:00 +00:00
parent 3c59b38be3
commit 778c5aea67

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-bridges_Library_cpp_uno_mk,v 1.3 2018/09/11 18:51:00 robert Exp $
re-enable depcrecated unexpected functions
Index: bridges/Library_cpp_uno.mk
--- bridges/Library_cpp_uno.mk.orig
+++ bridges/Library_cpp_uno.mk
@@ -186,6 +186,10 @@ $(eval $(call gb_Library_set_include,$(gb_CPPU_ENV)_un
$$(INCLUDE) \
))
+$(eval $(call gb_Library_add_defs,$(gb_CPPU_ENV)_uno,\
+ -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS \
+))
+
ifeq ($(HAVE_POSIX_FALLOCATE),YES)
$(eval $(call gb_Library_add_defs,$(gb_CPPU_ENV)_uno,\
-DHAVE_POSIX_FALLOCATE \