summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-03-01 09:44:10 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-03-01 09:44:10 +0000
commitc35ab347744adae6d8f2466464c4cc1c3b503c7d (patch)
tree7f3f497a82efcffb39cd999006a767ac81cf12fd /gmodule
parentdb8baf697889c80c0632d7cc91343c18a2647429 (diff)
downloadglib-c35ab347744adae6d8f2466464c4cc1c3b503c7d.tar.gz
New function that returns the message string for a Win32 error code.
2000-03-04 Tor Lillqvist <tml@iki.fi> * gwin32.c (g_win32_error_message): New function that returns the message string for a Win32 error code. * glib.h: Declare it. * glib.def: Export it, plus g_node_copy. * gmodule-win32.c: Call g_win32_error_message() to get the error message strings. * libgplugin_a.c * libgplugin_b.c * gmodule.c: Remove LibMain functions that were needed by LCC, which is not a supported compiler. * testgmodule.c (main): Test for G_MODULE_IMPL == G_MODULE_IMPL_WIN32, not G_OS_WIN32. * gmoduleconf.h.win32: Remove LCC stuff from here, too.
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/ChangeLog15
-rw-r--r--gmodule/testgmodule.c6
2 files changed, 18 insertions, 3 deletions
diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog
index 2095d835f..fa58bd49b 100644
--- a/gmodule/ChangeLog
+++ b/gmodule/ChangeLog
@@ -1,3 +1,18 @@
+2000-03-04 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule-win32.c: Call g_win32_error_message() to get the error
+ message strings.
+
+ * libgplugin_a.c
+ * libgplugin_b.c
+ * gmodule.c: Remove LibMain functions that were needed by LCC,
+ which is not a supported compiler.
+
+ * testgmodule.c (main): Test for G_MODULE_IMPL ==
+ G_MODULE_IMPL_WIN32, not G_OS_WIN32.
+
+ * gmoduleconf.h.win32: Remove LCC stuff from here, too.
+
Wed Mar 1 05:34:47 2000 Tim Janik <timj@gtk.org>
* gmodule-beos.c (_g_module_symbol): do not return NULL symbols.
diff --git a/gmodule/testgmodule.c b/gmodule/testgmodule.c
index 70ebe2d3a..85f4c8db5 100644
--- a/gmodule/testgmodule.c
+++ b/gmodule/testgmodule.c
@@ -53,16 +53,16 @@ main (int arg,
string = g_get_current_dir ();
g_print ("testgmodule (%s):\n", string);
-#ifdef G_OS_WIN32
+#if (G_MODULE_IMPL == G_MODULE_IMPL_WIN32)
plugin_a = g_strconcat (string, "\\libgplugin_a.dll", NULL);
plugin_b = g_strconcat (string, "\\libgplugin_b.dll", NULL);
#elif (G_MODULE_IMPL == G_MODULE_IMPL_DLD)
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.sl", NULL);
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.sl", NULL);
-#else /* G_MODULE_IMPL != G_MODULE_IMPL_DLD && !G_OS_WIN32 */
+#else /* neither DLD nor WIN32 */
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.so", NULL);
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.so", NULL);
-#endif /* G_OS_WIN32 */
+#endif
g_free (string);
/* module handles