@@ -730,19 +730,20 @@ index d05e4b9..39e5721 100644
730
730
+
731
731
#endif /* _STL_MAP_H */
732
732
diff --git a/libstdc++-v3/src/c++11/system_error.cc b/libstdc++-v3/src/c++11/system_error.cc
733
- index 453c687..32e563c 100644
733
+ index 453c687..e86e369 100644
734
734
--- a/libstdc++-v3/src/c++11/system_error.cc
735
735
+++ b/libstdc++-v3/src/c++11/system_error.cc
736
- @@ -28,6 +28,8 @@
736
+ @@ -27,6 +27,9 @@
737
+ #include <system_error>
737
738
#include <bits/functexcept.h>
738
739
#include <limits>
739
-
740
- + #define __EXCSTR(s) (__extension__({static const char __c[] __attribute__((section(".irom.exceptiontext,\"MS\",@progbits,1#"))) = (s); &__c[0];}))
740
+ + #include <cstdlib>
741
741
+
742
+ + #define __EXCSTR(s) (__extension__({static const char __c[] __attribute__((section(".irom.exceptiontext,\"MS\",@progbits,1#"))) = (s); &__c[0];}))
743
+
742
744
namespace
743
745
{
744
- using std::string;
745
- @@ -36,7 +38,7 @@ namespace
746
+ @@ -36,14 +39,15 @@ namespace
746
747
{
747
748
virtual const char*
748
749
name() const noexcept
@@ -751,7 +752,16 @@ index 453c687..32e563c 100644
751
752
752
753
virtual string
753
754
message(int i) const
754
- @@ -51,7 +53,7 @@ namespace
755
+ {
756
+ // XXX locale issues: how does one get or set loc.
757
+ // _GLIBCXX_HAVE_STRERROR_L, strerror_l(i, cloc)
758
+ - return string(strerror(i));
759
+ + char buff[16];
760
+ + return string(itoa(i, buff, 10));
761
+ }
762
+ };
763
+
764
+ @@ -51,14 +55,15 @@ namespace
755
765
{
756
766
virtual const char*
757
767
name() const noexcept
@@ -760,3 +770,12 @@ index 453c687..32e563c 100644
760
770
761
771
virtual string
762
772
message(int i) const
773
+ {
774
+ // XXX locale issues: how does one get or set loc.
775
+ // _GLIBCXX_HAVE_STRERROR_L, strerror_l(i, cloc)
776
+ - return string(strerror(i));
777
+ + char buff[16];
778
+ + return string(itoa(i, buff, 10));
779
+ }
780
+ };
781
+
0 commit comments