stdcxx: re-enable _GLIBCXX_USE_C99_STDINT_TR1

The option was enabled until version 4.8 and is needed by
std::lock_guard at least.
This commit is contained in:
Christian Helmuth 2015-05-28 13:55:47 +02:00
parent 2c090119ae
commit ba0e1b782e
4 changed files with 25 additions and 2 deletions

View File

@ -1261,7 +1261,7 @@ namespace std
/* Define if C99 types in <stdint.h> should be imported in <tr1/cstdint> in
namespace std::tr1. */
/* #undef GLIBCXX_USE_C99_STDINT_TR1 */
#define _GLIBCXX_USE_C99_STDINT_TR1 1
/* Defined if clock_gettime has monotonic clock support. */
/* #undef _GLIBCXX_USE_CLOCK_MONOTONIC */

View File

@ -1 +1 @@
b39cfa69b3aa8f3a5f2d27b4249fbf15d402e1e4
e718998ad84312ca17d023013fc1e1e981c144be

View File

@ -10,6 +10,9 @@ KEY(gcc) := GNU
TAR_OPT(gcc) := gcc-$(VERSION)/libstdc++-v3 --strip-components=2
PATCHES := src/lib/stdcxx/type_traits.patch
PATCH_OPT := -p1 -d src/lib/stdcxx
DIRS := include/stdcxx
DIR_CONTENT(include/stdcxx) := \
src/lib/stdcxx/include/* \

View File

@ -0,0 +1,20 @@
--- a/include/std/type_traits
+++ b/include/std/type_traits
@@ -38,15 +38,7 @@
#include <bits/c++config.h>
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
-# if defined (__UINT_LEAST16_TYPE__) && defined(__UINT_LEAST32_TYPE__)
-namespace std
-{
- typedef __UINT_LEAST16_TYPE__ uint_least16_t;
- typedef __UINT_LEAST32_TYPE__ uint_least32_t;
-}
-# else
-# include <cstdint>
-# endif
+#include <cstdint>
#endif
namespace std _GLIBCXX_VISIBILITY(default)