+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gmain.c
+ * glib/giowin32.c: Mark the _funcs tables for export.
+
+ * glib/glib.def: Add here, too.
+
+ * glib/gwin32.c (get_package_directory_from_module): No reason to
+ check for the module being in a bin or lib directory only when
+ module_name is non-NULL.
+
+ * glib/gwin32.c (g_win32_get_package_installation_directory):
+ Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
+
2001-09-17 Darin Adler <darin@bentspoon.com>
* tests/strfunc-test.c: (main): Change so that it works
g_io_channel_unref (watch->channel);
}
+#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
+__declspec(dllexport)
+#endif
GSourceFuncs g_io_watch_funcs = {
g_io_win32_prepare,
g_io_win32_check,
g_iconv_open
g_idle_add
g_idle_add_full
+ g_idle_funcs
g_idle_remove_by_data
g_idle_source_new
g_int_equal
g_io_channel_write_chars
g_io_channel_write_unichar
g_io_create_watch
+ g_io_watch_funcs
g_list_alloc
g_list_append
g_list_concat
g_threads_got_initialized
g_timeout_add
g_timeout_add_full
+ g_timeout_funcs
g_timeout_source_new
g_timer_destroy
g_timer_elapsed
G_LOCK_DEFINE_STATIC (main_loop);
static GMainContext *default_main_context;
+#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
+__declspec(dllexport)
+#endif
GSourceFuncs g_timeout_funcs =
{
g_timeout_prepare,
NULL
};
+#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
+__declspec(dllexport)
+#endif
GSourceFuncs g_idle_funcs =
{
g_idle_prepare,
if ((p = strrchr (fn, G_DIR_SEPARATOR)) != NULL)
*p = '\0';
- if (module_name)
- {
- p = strrchr (fn, G_DIR_SEPARATOR);
- if (p && (g_ascii_strcasecmp (p + 1, "bin") == 0 ||
- g_ascii_strcasecmp (p + 1, "lib") == 0))
- *p = '\0';
- }
+ p = strrchr (fn, G_DIR_SEPARATOR);
+ if (p && (g_ascii_strcasecmp (p + 1, "bin") == 0 ||
+ g_ascii_strcasecmp (p + 1, "lib") == 0))
+ *p = '\0';
g_hash_table_insert (module_dirs, module_name ? module_name : "", fn);
key = g_strconcat ("Software\\", package, NULL);
nbytes = 0;
- if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, key, 0,
- KEY_QUERY_VALUE, ®_key) == ERROR_SUCCESS
- && RegQueryValueEx (reg_key, "InstallationDirectory", 0,
- &type, NULL, &nbytes) == ERROR_SUCCESS
- && type == REG_SZ)
+ if ((RegOpenKeyEx (HKEY_CURRENT_USER, key, 0,
+ KEY_QUERY_VALUE, ®_key) == ERROR_SUCCESS
+ && RegQueryValueEx (reg_key, "InstallationDirectory", 0,
+ &type, NULL, &nbytes) == ERROR_SUCCESS)
+ ||
+ ((RegOpenKeyEx (HKEY_LOCAL_MACHINE, key, 0,
+ KEY_QUERY_VALUE, ®_key) == ERROR_SUCCESS
+ && RegQueryValueEx (reg_key, "InstallationDirectory", 0,
+ &type, NULL, &nbytes) == ERROR_SUCCESS)
+ && type == REG_SZ))
{
result = g_malloc (nbytes + 1);
RegQueryValueEx (reg_key, "InstallationDirectory", 0,
+2001-09-18 Tor Lillqvist <tml@iki.fi>
+
+ * Makefile.am: On Win32, pass a dummy -rpath flag to libtool when
+ building libgplugin_[ab].la, otherwise libtool doesn't create a
+ DLL, but a static archive.
+
2001-07-20 Hans Breuer <hans@breuer.org>
* makefile.msc.in : reflect glib move
endif
if OS_WIN32
export_symbols = -export-symbols gmodule.def
+plugin_rpath = -rpath `pwd`
endif
libgmodule_1_3_la_SOURCES = gmodule.c
libgmodule_1_3_la_DEPENDENCIES = @G_MODULE_WIN32_RESOURCE@
libgplugin_a_la_SOURCES = libgplugin_a.c
-libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined)
+libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined) $(plugin_rpath)
libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ @G_MODULE_LIBS_EXTRA@ @G_MODULE_PLUGIN_LIBS@ libgmodule-1.3.la $(libglib)
libgplugin_b_la_SOURCES = libgplugin_b.c
-libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined)
+libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined) $(plugin_rpath)
libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ @G_MODULE_LIBS_EXTRA@ @G_MODULE_PLUGIN_LIBS@ libgmodule-1.3.la $(libglib)
noinst_PROGRAMS = testgmodule