diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2023-08-05 17:55:06 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-08-12 08:29:59 +0700 |
commit | 1d649c14652fa91828ee862ad9a444b78e536657 (patch) | |
tree | e7309ee6d29b9f9521ebe8aa9f100006cf6b9c81 /libraries/wxsvg/gcc13.patch | |
parent | dd43b528a0a10ab93c998432f28c29e7c887ae9c (diff) |
libraries/wxsvg: Updated for version 1.5.24.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/wxsvg/gcc13.patch')
-rw-r--r-- | libraries/wxsvg/gcc13.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libraries/wxsvg/gcc13.patch b/libraries/wxsvg/gcc13.patch new file mode 100644 index 0000000000000..fdc57958dd5fb --- /dev/null +++ b/libraries/wxsvg/gcc13.patch @@ -0,0 +1,31 @@ +From https://gcc.gnu.org/gcc-13/porting_to.html + +Some C++ Standard Library headers have been changed to no longer +include other headers that were being used internally by the library. +As such, C++ programs that used standard library components without +including the right headers will no longer compile. + +The following headers are used less widely in libstdc++ and may need +to be included explicitly when compiling with GCC 13: + + <string> (for std::string, std::to_string, std::stoi etc.) + <system_error> (for std::error_code, std::error_category, std::system_error). + <cstdint> (for std::int8_t, std::int32_t etc.) + <cstdio> (for std::printf, std::fopen etc.) + <cstdlib> (for std::strtol, std::malloc etc.) + +- + +Matteo Bernardini <ponce@slackbuilds.org> + +diff -Naur wxsvg-1.5.24.orig/src/cairo/SVGCanvasCairo.cpp wxsvg-1.5.24/src/cairo/SVGCanvasCairo.cpp +--- wxsvg-1.5.24.orig/src/cairo/SVGCanvasCairo.cpp 2022-08-31 16:56:26.000000000 +0200 ++++ wxsvg-1.5.24/src/cairo/SVGCanvasCairo.cpp 2023-04-27 22:23:05.069420000 +0200 +@@ -14,6 +14,7 @@ + #include "SVGCanvasImageCairo.h" + #include <wx/log.h> + #include <wx/file.h> ++#include <cstdint> + + wxSVGCanvasCairo::~wxSVGCanvasCairo() { + Destroy(); |