[vlc-devel] [PATCH 04/15] nacl: nacl comes with xlocale dummies for C++

Julian Scheel julian at jusst.de
Wed Mar 8 15:55:21 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 eff661de3d..9b1edcaa0e 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -282,7 +282,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