diff gcc/ginclude/stdint-wrap.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children
line wrap: on
line diff
--- a/gcc/ginclude/stdint-wrap.h	Sun Aug 21 07:07:55 2011 +0900
+++ b/gcc/ginclude/stdint-wrap.h	Fri Oct 27 22:46:09 2017 +0900
@@ -1,5 +1,11 @@
 #ifndef _GCC_WRAP_STDINT_H
 #if __STDC_HOSTED__
+# if defined __cplusplus && __cplusplus >= 201103L
+#  undef __STDC_LIMIT_MACROS
+#  define __STDC_LIMIT_MACROS
+#  undef __STDC_CONSTANT_MACROS
+#  define __STDC_CONSTANT_MACROS
+# endif
 # include_next <stdint.h>
 #else
 # include "stdint-gcc.h"