mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-21 03:55:04 +00:00
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:
parent
2c090119ae
commit
ba0e1b782e
@ -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 */
|
||||
|
@ -1 +1 @@
|
||||
b39cfa69b3aa8f3a5f2d27b4249fbf15d402e1e4
|
||||
e718998ad84312ca17d023013fc1e1e981c144be
|
||||
|
@ -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/* \
|
||||
|
20
repos/libports/src/lib/stdcxx/type_traits.patch
Normal file
20
repos/libports/src/lib/stdcxx/type_traits.patch
Normal 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)
|
Loading…
Reference in New Issue
Block a user