0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

Adapt Mac specific code to new universal headers (I think -- this is

Jack's code).
This commit is contained in:
Guido van Rossum 1997-04-29 15:49:04 +00:00
parent dfed920e51
commit 8ec9e639ab

View File

@ -1610,14 +1610,14 @@ static FSSpec library_fss;
** resources.
*/
OSErr pascal
init_tkinter_shlib(InitBlockPtr data)
init_tkinter_shlib(CFragInitBlockPtr data)
{
__initialize();
if ( data == nil ) return noErr;
if ( data->fragLocator.where == kOnDiskFlat ) {
if ( data->fragLocator.where == kDataForkCFragLocator ) {
library_fss = *data->fragLocator.u.onDisk.fileSpec;
loaded_from_shlib = 1;
} else if ( data->fragLocator.where == kOnDiskSegmented ) {
} else if ( data->fragLocator.where == kResourceCFragLocator ) {
library_fss = *data->fragLocator.u.inSegs.fileSpec;
loaded_from_shlib = 1;
}