projects/guix·blob java-team · refs

47 lines · 1.4 KiB

1Retrieved from Fedora: https://src.fedoraproject.org/rpms/pstoedit/tree
2
3diff --git a/src/pstoedit.cpp b/src/pstoedit.cpp
4index a718f37..ac0df37 100755
5--- a/src/pstoedit.cpp
6+++ b/src/pstoedit.cpp
7@@ -327,6 +327,11 @@ extern FILE *yyin; // used by lexer
8 // otherwise we could declare it locally where it is used
9
10
11+extern "C" DLLEXPORT void loadpstoeditplugins_plainC(const char *progname, int verbose)
12+{
13+ return loadpstoeditplugins(progname, cerr, (bool) verbose);
14+}
15+
16 static void usage(ostream & outstream, bool forTeX, bool withdetails, bool withcategories )
17 {
18 if (withcategories) {
19diff --git a/src/pstoedit.h b/src/pstoedit.h
20index 294b3c2..74ebf2a 100755
21--- a/src/pstoedit.h
22+++ b/src/pstoedit.h
23@@ -100,8 +100,13 @@ void clearPstoeditDriverInfo_plainC(struct DriverDescription_S * ptr);
24
25 #ifdef __cplusplus
26 extern "C" DLLEXPORT
27-#endif
28 void loadpstoeditplugins(const char* progname, std::ostream & errstream, bool verbose);
29+#endif
30+
31+#ifdef __cplusplus
32+extern "C" DLLEXPORT
33+#endif
34+void loadpstoeditplugins_plainC(const char* progname, int verbose);
35
36 #ifdef __cplusplus
37 extern "C" DLLEXPORT
38--- a/src/pstoedit.orig.h 2023-07-22 19:27:43.691166652 +0200
39+++ b/src/pstoedit.h 2023-07-22 19:31:18.897952130 +0200
40@@ -37,6 +37,7 @@
41 #endif
42
43 #include "pstoedll.h"
44+#include <stdbool.h>
45
46 typedef int (*execute_interpreter_function)(int argc, const char * const argv[]);
47