Skip to content
Snippets Groups Projects
Commit fa869802 authored by Piotr Kubaj's avatar Piotr Kubaj
Browse files

print/scribus-devel: update patch for 14 to fix build on 12 and 13

PR:	272673
Submitted by:	Trond Endrestøl
parent c9cc200c
No related branches found
No related tags found
No related merge requests found
--- scribus/desaxe/digester.cpp.orig 2023-07-26 15:32:48 UTC
--- scribus/desaxe/digester.cpp.orig 2023-07-31 21:07:27 UTC
+++ scribus/desaxe/digester.cpp
@@ -448,7 +448,7 @@ automata::NFA<nfa_state_t, token_t>* RuleState::create
@@ -448,7 +448,11 @@ automata::NFA<nfa_state_t, token_t>* RuleState::create
return nfa;
}
-struct CreateDFAState : public std::unary_function <std::set<nfa_state_t>, dfa_state_t> {
+#if __cplusplus >= 201703L // ISO C++ 2017 or newer.
+struct CreateDFAState : public std::__unary_function <std::set<nfa_state_t>, dfa_state_t> {
+#else
struct CreateDFAState : public std::unary_function <std::set<nfa_state_t>, dfa_state_t> {
+#endif
CreateDFAState(const std::vector<rule_t>& rules, const std::vector<nfa_state_t>& accepting)
: n(0), rules_(rules), accepting_(accepting)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment