gmodule for OS/2



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 ?

* --- 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.

***********************************************************
* Asbj rn Pettersen           Phone work: +47 77 66 08 91  *
* Kongsberg Spacetec a.s     Phone home: +47 77674022  *
*                              Telefax:    +47 77 65 58 59  *
* Prestvannveien 38          www:http://www.spacetec.no   *
* N-9005 Tromsoe, Norway     email:ape@spacetec.no  *
***********************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]