[vlc-commits] Mingw and mingw-w64 has broken C++11 support

Jean-Baptiste Kempf git at videolan.org
Thu Jun 18 19:23:53 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 18 19:23:23 2015 +0200| [4f70ea7d7343a4b221c6298737b0a9e6b3f51444] | committer: Jean-Baptiste Kempf

Mingw and mingw-w64 has broken C++11 support

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

 include/vlc_fixups.h |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 9f4bc87..37e886d2 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -28,16 +28,16 @@
 
 /* C++11 says there's no need to define __STDC_*_MACROS when including
  * inttypes.h and stdint.h. */
-#if defined (__cplusplus) && !defined(HAVE_CXX11)
-#ifndef __STDC_FORMAT_MACROS
-#define __STDC_FORMAT_MACROS 1
-#endif
-#ifndef __STDC_CONSTANT_MACROS
-#define __STDC_CONSTANT_MACROS 1
-#endif
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS 1
-#endif
+#if defined (__cplusplus) && (!defined(HAVE_CXX11) || defined(__MINGW32__))
+# ifndef __STDC_FORMAT_MACROS
+#  define __STDC_FORMAT_MACROS 1
+# endif
+# ifndef __STDC_CONSTANT_MACROS
+#  define __STDC_CONSTANT_MACROS 1
+# endif
+# ifndef __STDC_LIMIT_MACROS
+#  define __STDC_LIMIT_MACROS 1
+# endif
 #endif
 
 #if !defined (HAVE_GMTIME_R) || !defined (HAVE_LOCALTIME_R)



More information about the vlc-commits mailing list