mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Added __sinit() call, so C++ initializations in shared library work
This commit is contained in:
parent
405ab2378e
commit
8ab1148762
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ static FSSpec library_fss;
|
||||||
OSErr pascal
|
OSErr pascal
|
||||||
PythonCore_init(InitBlockPtr data)
|
PythonCore_init(InitBlockPtr data)
|
||||||
{
|
{
|
||||||
|
/* Initialize C++ static data (if needed) */
|
||||||
|
__sinit();
|
||||||
|
|
||||||
if ( data == nil ) return noErr;
|
if ( data == nil ) return noErr;
|
||||||
if ( data->fragLocator.where == kOnDiskFlat ) {
|
if ( data->fragLocator.where == kOnDiskFlat ) {
|
||||||
library_fss = *data->fragLocator.u.onDisk.fileSpec;
|
library_fss = *data->fragLocator.u.onDisk.fileSpec;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue