mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9baba7e5b351 (bug 872577) for multiple Android failures.
CLOSED TREE
This commit is contained in:
parent
65882bb67b
commit
d9df649155
@ -228,25 +228,10 @@
|
||||
return fd.dispose();
|
||||
};
|
||||
|
||||
{
|
||||
// Symbol free() is special.
|
||||
// We override the definition of free() on several platforms.
|
||||
let default_lib = null;
|
||||
try {
|
||||
// On platforms for which we override free(), nspr defines
|
||||
// a special library name "a.out" that will resolve to the
|
||||
// correct implementation free().
|
||||
default_lib = ctypes.open("a.out");
|
||||
} catch (ex) {
|
||||
// On other platforms, well, use the regular version of free.
|
||||
default_lib = libc;
|
||||
}
|
||||
|
||||
UnixFile.free =
|
||||
default_lib.declare("free", ctypes.default_abi,
|
||||
/*return*/ ctypes.void_t,
|
||||
/*ptr*/ ctypes.voidptr_t);
|
||||
}
|
||||
UnixFile.free =
|
||||
libc.declare("free", ctypes.default_abi,
|
||||
/*return*/ ctypes.void_t,
|
||||
/*ptr*/ ctypes.voidptr_t);
|
||||
|
||||
// Other functions
|
||||
UnixFile.access =
|
||||
|
Loading…
Reference in New Issue
Block a user