| 1 | Retrieved from Fedora: https://src.fedoraproject.org/rpms/pstoedit/tree
|
| 2 |
|
| 3 | diff --git a/src/pstoedit.cpp b/src/pstoedit.cpp
|
| 4 | index a718f37..ac0df37 100755
|
| 5 | |
| 6 | |
| 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) {
|
| 19 | diff --git a/src/pstoedit.h b/src/pstoedit.h
|
| 20 | index 294b3c2..74ebf2a 100755
|
| 21 | |
| 22 | |
| 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 | |
| 39 | |
| 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 |
|