[vlc-devel] [PATCH v4 07/18] nacl: nacl comes with xlocale dummies for C++

Julian Scheel julian at jusst.de
Wed Mar 22 09:58:55 CET 2017


The nacl c++ toolchain comes with it's own dummy implementation of
extended locale functions, which are not implemented in newlib.
Thus do use the vlc_fixups not for C++ code on Native Client builds.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 include/vlc_fixups.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 1380ac2ee7..111f03d66c 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -291,7 +291,7 @@ int posix_memalign (void **, size_t, size_t);
 #endif
 
 /* locale.h */
-#ifndef HAVE_USELOCALE
+#if !defined(HAVE_USELOCALE) && !(defined(__native_client__) && defined(__cplusplus))
 #define LC_ALL_MASK      0
 #define LC_NUMERIC_MASK  0
 #define LC_MESSAGES_MASK 0
-- 
2.12.0



More information about the vlc-devel mailing list