Re: [gtk-list] gmodule for OS/2
- From: Tim Janik <timj gtk org>
- To: Gtk+ MList <gtk-list redhat com>
- Subject: Re: [gtk-list] gmodule for OS/2
- Date: Thu, 1 Apr 1999 23:34:20 +0200 (CEST)
On Thu, 1 Apr 1999, Asbjoern Pettersen wrote:
> I have got a patched (for OS/2) gmodule-dl.c from Mr. Hung but
> i want to rename it to gmodule-os2.c and add G_MODULE_IMPL_OS2.
> To rename and add the file is easy but how do i set
> the G_MODULE_IMPL to G_MODULE_IMPL_OS2 ?
you need to add the line
#define G_MODULE_IMPL_WIN32 4
to gmoduleconf.h.in (and therefore to gmoduleconf.h as well).
then you need an appropriate counterpart to gmoduleconf.h.win32
for os2 which will (amongst other things) have something like
#define G_MODULE_IMPL G_MODULE_IMPL_OS2
in it.
> * --- include platform specifc code --- */
> #define CHECK_ERROR(rv) { g_module_set_error (NULL); }
> #if (G_MODULE_IMPL == G_MODULE_IMPL_DL)
> #include "gmodule-dl.c"
> #elif (G_MODULE_IMPL == G_MODULE_IMPL_DLD)
> #include "gmodule-dld.c"
> #elif (G_MODULE_IMPL == G_MODULE_IMPL_WIN32)
> #include "gmodule-win32.c"
> #elif (G_MODULE_IMPL == G_MODULE_IMPL_OS2)
> #include "gmodule-os2.c" /* MY suggestion !!! */
> #else
> #undef CHECK_ERROR
> #define CHECK_ERROR(rv) { g_module_set_error ("dynamic modules are " \
> "not supported by this system"); return rv; }
>
> Regards
> Asbjoern P.
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]