+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * glib/giowin32.c
+ * glib/gmain.c
+ * glib/gstrfuncs.c
+ * glib/gthread.c: Decorating variable definitions with
+ __declspec(dllexport) causes problems on Cygwin build, and isn't
+ really needed for a native Win32 build with mingw or MSVC, so
+ remove. (#138402, Roger Leigh)
+
+ * glib/libcharset/localcharset.c: Use Win32-specific code also on
+ Cygwin.
+ * tests/uri-test.c: Don't assume that local filenames are in UTF-8
+ on Cygwin, either. (#138412, Roger Leigh)
+
2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
UNLOCK (channel->mutex);
}
-#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
-__declspec(dllexport)
-#endif
GSourceFuncs g_io_watch_funcs = {
g_io_win32_prepare,
g_io_win32_check,
G_LOCK_DEFINE_STATIC (main_context_list);
static GSList *main_context_list = NULL;
-#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,
/**
* g_child_watch_source_new:
- * @pid: process id of a child process to watch
+ * @pid: process id of a child process to watch. On Windows, a HANDLE
+ * for the process to watch (which actually doesn't have to be a child).
*
* Creates a new child_watch source.
*
/* the upper 128 are all zeroes */
};
-#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
-__declspec(dllexport)
-#endif
const guint16 * const g_ascii_table = ascii_table_data;
gchar*
gboolean g_thread_use_default_impl = TRUE;
gboolean g_threads_got_initialized = FALSE;
-#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
-__declspec(dllexport)
-#endif
GThreadFunctions g_thread_functions_for_glib_use = {
(GMutex*(*)())g_thread_fail, /* mutex_new */
NULL, /* mutex_lock */
# include <config.h>
#endif
+#include <glibconfig.h>
+
+#if defined G_PLATFORM_WIN32
+/* Want to use Win32-specific code in this file also on Cygwin */
+# define _WIN32 1
+#endif
+
#if HAVE_STDDEF_H
# include <stddef.h>
#endif
{ "c:\\windows", "otherhost", NULL, G_CONVERT_ERROR_NOT_ABSOLUTE_PATH},
#endif
{ "etc", "localhost", NULL, G_CONVERT_ERROR_NOT_ABSOLUTE_PATH},
-#ifndef G_OS_WIN32
+#ifndef G_PLATFORM_WIN32
/* g_filename_to_utf8 uses current code page on Win32, these tests assume that
* local filenames *are* in UTF-8.
*/