Skip to content

Commit

Permalink
Fix build with GCC 12
Browse files Browse the repository at this point in the history
Co-authored-by: Z8MAN8 <Z8MAN8@users.noreply.github.com>
  • Loading branch information
clansty and Z8MAN8 committed Jan 9, 2023
1 parent 1c45fa0 commit 12cb04f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pstoedit (3.77-1deepin1) unstable; urgency=medium

* Fix build with GCC 12

-- Clansty <i@gao4.pw> Mon, 09 Jan 2023 18:29:14 +0800

pstoedit (3.77-1) unstable; urgency=medium

* New upstream release
Expand Down
19 changes: 19 additions & 0 deletions debian/patches/fix-riscv.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Description: Fix build with GCC 12
pstoedit (3.77-1deepin1) unstable; urgency=medium
.
* Fix build on RISC-V
Author: Clansty <i@gao4.pw>

--- pstoedit-3.77.orig/src/drvpptx.cpp
+++ pstoedit-3.77/src/drvpptx.cpp
@@ -66,6 +66,10 @@ long lroundf(float f) {

#include <zip.h>

+#if __GCC__ > 11
+#include <memory>
+#endif
+
#ifdef _MSC_VER
// MS VC++ Windows
// handle this warning:
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
0001-spelling.patch
fix-riscv.patch

0 comments on commit 12cb04f

Please sign in to comment.