!4 修复由于gcc升级到12版本导致的编译失败

From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-07-14 07:10:38 +00:00 committed by Gitee
commit ea5ce270cb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/drvpptx.cpp b/src/drvpptx.cpp
index d3b37b3..208a938 100644
--- a/src/drvpptx.cpp
+++ b/src/drvpptx.cpp
@@ -65,6 +65,7 @@ long lroundf(float f) {
#define ZIP_EXTERN extern
#include <zip.h>
+#include <memory>
#ifdef _MSC_VER
// MS VC++ Windows

View File

@ -1,11 +1,14 @@
Name: pstoedit
Version: 3.78
Release: 1
Release: 2
Summary: Translates PostScript and PDF graphics into other vector formats
License: GPLv2+
URL: http://www.pstoedit.net/
Source0: https://sourceforge.net/projects/pstoedit/files/pstoedit/%{version}/pstoedit-%{version}.tar.gz
Patch0: pstoedit-pkglibdir.patch
Patch1: Fix-compilation-failure-caused-by-gcc12.patch
Requires: ghostscript
BuildRequires: gd-devel dos2unix ghostscript libzip-devel
BuildRequires: plotutils-devel automake gcc-c++ libEMF-devel
@ -66,6 +69,9 @@ install -D doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1/
%{_mandir}/man1/*
%changelog
* Fri Jul 14 2023 xu_ping <707078654@qq.com> - 3.78-2
- Fix compilation failure caused by gcc12
* Tue Jan 10 2023 yaoxin <yaoxin30@h-partners.com> - 3.78-1
- Update to 3.78