provide no operation implementation for the underlying _g_module_*

Thu Aug 20 07:08:16 1998  Tim Janik  <timj@gtk.org>

        * gmodule.c: provide no operation implementation for the underlying
        _g_module_* functions, so we at least compile on systems that have
        neither of G_MODULE_IMPL_DL or G_MODULE_IMPL_DLD.
This commit is contained in:
Tim Janik 1998-08-20 05:10:27 +00:00 committed by Tim Janik
parent c4a99a2eb9
commit 0b870ec357
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Thu Aug 20 07:08:16 1998 Tim Janik <timj@gtk.org>
* gmodule.c: provide no operation implementation for the underlying
_g_module_* functions, so we at least compile on systems that have
neither of G_MODULE_IMPL_DL or G_MODULE_IMPL_DLD.
Mon Aug 17 03:41:52 1998 Tim Janik <timj@gtk.org>
* gmodule.h:

View File

@ -110,6 +110,28 @@ g_module_set_error (const gchar *error)
#else
#undef CHECK_ERROR
#define CHECK_ERROR(rv) { g_module_set_error ("unsupported"); return rv; }
static gpointer
_g_module_open (const gchar *file_name,
gboolean bind_lazy)
{
return NULL;
}
static void
_g_module_close (gpointer handle,
gboolean is_unref)
{
}
static gpointer
_g_module_self (void)
{
return NULL;
}
static gpointer
_g_module_symbol (gpointer handle,
const gchar *symbol_name)
{
return NULL;
}
#endif /* no implementation */