[vlc-commits] vlc_fixups: Provide __STDC_*_MACROS when building C++ for NACL

Hugo Beauzée-Luyssen git at videolan.org
Thu Oct 12 16:56:33 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Oct 12 16:00:57 2017 +0200| [04bf5ab8ebe84c1f76bc0baa42246960a2f272ee] | committer: Hugo Beauzée-Luyssen

vlc_fixups: Provide __STDC_*_MACROS when building C++ for NACL

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04bf5ab8ebe84c1f76bc0baa42246960a2f272ee
---

 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 eb0eb17278..4888b782be 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -33,7 +33,7 @@
 
 /* C++11 says there's no need to define __STDC_*_MACROS when including
  * inttypes.h and stdint.h. */
-#if defined (__cplusplus) && (defined(__MINGW32__) || defined(__UCLIBC__))
+#if defined (__cplusplus) && (defined(__MINGW32__) || defined(__UCLIBC__) || defined(__native_client__))
 # ifndef __STDC_FORMAT_MACROS
 #  define __STDC_FORMAT_MACROS 1
 # endif



More information about the vlc-commits mailing list