mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Don't crash if removing a nonexistent value.
1999-10-31 Tor Lillqvist <tml@iki.fi> * gcache.c (g_cache_remove): Don't crash if removing a nonexistent value. * gutils.c (gwin_getlocale): New Win32-specific function, returns a Unixish current locale string (en, zh_TW etc). * glib.h: Declare it. * glib.def: Export it. * testglib.c: Test it. * gmessages.c (Win32: ensure_stdout_valid): Some improvements, make sure we don't call AllocConsole several times, which I think has happened.
This commit is contained in:
committed by
Tor Lillqvist
parent
a2760140c8
commit
30cc3ed1fe
@@ -40,7 +40,7 @@ extern const char *g_log_domain_gmodule;
|
||||
* to feature Windows dll stubs.
|
||||
*/
|
||||
#define G_MODULE_IMPORT extern
|
||||
#if defined (G_OS_WIN32) && defined (__GNUC__)
|
||||
#if defined (G_OS_WIN32)
|
||||
# define G_MODULE_EXPORT __declspec(dllexport)
|
||||
#else /* !G_OS_WIN32 */
|
||||
# define G_MODULE_EXPORT
|
||||
|
Reference in New Issue
Block a user