mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-20 13:40:25 +01:00
Fixed gcc on windows limitation
A pointer to a function or variable marked as dllimport cannot be used as a constant address.
This commit is contained in:
parent
f76399115e
commit
235e8dfe2e
1 changed files with 6 additions and 7 deletions
|
|
@ -26,12 +26,7 @@
|
|||
#include <dbus/dbus-internals.h>
|
||||
#include <expat.h>
|
||||
|
||||
static XML_Memory_Handling_Suite memsuite =
|
||||
{
|
||||
dbus_malloc,
|
||||
dbus_realloc,
|
||||
dbus_free
|
||||
};
|
||||
static XML_Memory_Handling_Suite memsuite;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
@ -196,7 +191,11 @@ bus_config_load (const DBusString *file,
|
|||
_dbus_string_free (&context.content);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
memsuite.malloc_fcn = dbus_malloc;
|
||||
memsuite.realloc_fcn = dbus_realloc;
|
||||
memsuite.free_fcn = dbus_free;
|
||||
|
||||
expat = XML_ParserCreate_MM ("UTF-8", &memsuite, NULL);
|
||||
if (expat == NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue