glib/giowin32.c glib/gmain.c glib/gstrfuncs.c Decorating variable
authorTor Lillqvist <tml@iki.fi>
Sat, 10 Apr 2004 01:55:57 +0000 (01:55 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 10 Apr 2004 01:55:57 +0000 (01:55 +0000)
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)

12 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/giowin32.c
glib/gmain.c
glib/gstrfuncs.c
glib/gthread.c
glib/libcharset/localcharset.c
tests/uri-test.c

index c7a4101..2857ac2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+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.
index c7a4101..2857ac2 100644 (file)
@@ -1,3 +1,18 @@
+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.
index c7a4101..2857ac2 100644 (file)
@@ -1,3 +1,18 @@
+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.
index c7a4101..2857ac2 100644 (file)
@@ -1,3 +1,18 @@
+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.
index c7a4101..2857ac2 100644 (file)
@@ -1,3 +1,18 @@
+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.
index c7a4101..2857ac2 100644 (file)
@@ -1,3 +1,18 @@
+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.
index 152c2c0..290cc93 100644 (file)
@@ -734,9 +734,6 @@ g_io_win32_finalize (GSource *source)
   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,
index 00b0214..36c9e17 100644 (file)
@@ -271,9 +271,6 @@ static gint child_watch_wake_up_pipe[2] = {0, 0};
 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,
@@ -290,9 +287,6 @@ GSourceFuncs g_child_watch_funcs =
   NULL
 };
 
-#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
-__declspec(dllexport)
-#endif
 GSourceFuncs g_idle_funcs =
 {
   g_idle_prepare,
@@ -3666,7 +3660,8 @@ g_child_watch_source_init (void)
 
 /**
  * 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.
  *
index e28f93b..ae5d64a 100644 (file)
@@ -75,9 +75,6 @@ static const guint16 ascii_table_data[256] = {
   /* 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*
index c222beb..5d50744 100644 (file)
@@ -95,9 +95,6 @@ static GSystemThread zero_thread; /* This is initialized to all zero */
 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 */
index 7c5dde9..4c8e1b9 100644 (file)
 # 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
index 05c3658..53f6ecb 100644 (file)
@@ -61,7 +61,7 @@ to_uri_tests[] = {
   { "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.
    */