mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
Mac-specific: BGL dictionaries under Mac OS X (issue #128)
This commit is contained in:
parent
5f27fbcc72
commit
757ad64247
|
@ -99,7 +99,14 @@ bool Babylon::open()
|
|||
|
||||
fflush( f );
|
||||
|
||||
#ifdef Q_OS_MACX
|
||||
/* Under Mac OS X the above technique don't set reopen position properly */
|
||||
int fn = DUP( fileno( f ) );
|
||||
lseek( fn, i, SEEK_SET );
|
||||
file = gzdopen( fn, "r" );
|
||||
#else
|
||||
file = gzdopen( DUP( fileno( f ) ), "r" );
|
||||
#endif
|
||||
|
||||
fclose( f );
|
||||
|
||||
|
|
Loading…
Reference in a new issue