Added __sinit() call, so C++ initializations in shared library work

This commit is contained in:
Jack Jansen 1996-02-29 16:10:32 +00:00
parent 405ab2378e
commit 8ab1148762
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ static FSSpec library_fss;
OSErr pascal
PythonCore_init(InitBlockPtr data)
{
/* Initialize C++ static data (if needed) */
__sinit();
if ( data == nil ) return noErr;
if ( data->fragLocator.where == kOnDiskFlat ) {
library_fss = *data->fragLocator.u.onDisk.fileSpec;