forked from mia/Aegisub
Final tweaks to perl fix.
Originally committed to SVN as r1745.
This commit is contained in:
parent
5fbe03e04e
commit
75d3fa5a0b
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,7 @@ namespace Automation4 {
|
|||
char** env = NULL;
|
||||
int argc = 3;
|
||||
char *argv[3] = { "aegisub", "-e", "0" };
|
||||
#ifdef __WINDOWS__
|
||||
#ifdef __VISUALC__
|
||||
char **argv2 = (char**) argv;
|
||||
PERL_SYS_INIT3(&argc,&argv2,&env);
|
||||
#endif
|
||||
|
@ -102,6 +102,9 @@ namespace Automation4 {
|
|||
// Perl interpreter deinitialization
|
||||
perl_destruct(parser);
|
||||
perl_free(parser);
|
||||
#ifdef __VISUALC__
|
||||
PERL_SYS_TERM();
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual Script* Produce(const wxString &filename) const
|
||||
|
|
Loading…
Reference in a new issue