diff options
author | Daniel Bermond | 2023-10-01 11:35:17 -0300 |
---|---|---|
committer | Daniel Bermond | 2023-10-01 11:35:17 -0300 |
commit | 10fb71b61c07bbdbd8cd8daefd2cc7975086da8b (patch) | |
tree | ddbd6fb10d00b959ef615f9626eb72eefaa749c3 /010-pstoedit-fix-plain-c.patch | |
parent | 7dee7789472da93607a0fe06ce0b7e3b88e8a55e (diff) | |
download | aur-10fb71b61c07bbdbd8cd8daefd2cc7975086da8b.tar.gz |
Update to version 4.00
Diffstat (limited to '010-pstoedit-fix-plain-c.patch')
-rw-r--r-- | 010-pstoedit-fix-plain-c.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/010-pstoedit-fix-plain-c.patch b/010-pstoedit-fix-plain-c.patch new file mode 100644 index 000000000000..02060f836cd0 --- /dev/null +++ b/010-pstoedit-fix-plain-c.patch @@ -0,0 +1,41 @@ +--- a/src/pstoedit.cpp ++++ b/src/pstoedit.cpp +@@ -327,6 +327,11 @@ extern FILE *yyin; // used by lexer + // otherwise we could declare it locally where it is used + + ++extern "C" DLLEXPORT void loadpstoeditplugins_plainC(const char *progname, int verbose) ++{ ++ return loadpstoeditplugins(progname, cerr, (bool) verbose); ++} ++ + static void usage(ostream & outstream, bool forTeX, bool withdetails, bool withcategories ) + { + if (withcategories) { +--- a/src/pstoedit.h ++++ b/src/pstoedit.h +@@ -100,8 +100,13 @@ void clearPstoeditDriverInfo_plainC(struct DriverDescription_S * ptr); + + #ifdef __cplusplus + extern "C" DLLEXPORT +-#endif + void loadpstoeditplugins(const char* progname, std::ostream & errstream, bool verbose); ++#endif ++ ++#ifdef __cplusplus ++extern "C" DLLEXPORT ++#endif ++void loadpstoeditplugins_plainC(const char* progname, int verbose); + + #ifdef __cplusplus + extern "C" DLLEXPORT +--- a/src/pstoedit.h ++++ b/src/pstoedit.h +@@ -37,6 +37,7 @@ + #endif + + #include "pstoedll.h" ++#include <stdbool.h> + + typedef int (*execute_interpreter_function)(int argc, const char * const argv[]); + |