Don't bother compiling the binary compatibility
authorTor Lillqvist <tml@novell.com>
Thu, 21 Aug 2008 11:47:04 +0000 (11:47 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 21 Aug 2008 11:47:04 +0000 (11:47 +0000)
2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Don't bother compiling the binary
compatibility g_io_channel_win32_new_stream_socket()
function that has not been mentioned in any header since 2.0 on
Win64.

* glib/glib.symbols: Mark it, too, private, and don't export it on
Win64.

svn path=/trunk/; revision=7384

ChangeLog
glib/giowin32.c
glib/glib.symbols

index 42927d8..6aed61c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
 2008-08-21  Tor Lillqvist  <tml@novell.com>
 
        * glib/giowin32.c: Minor comment improvements. Improve run-time
-       warning messages. Drop some #if 0 code.
+       warning messages. Drop some #if 0 code. Don't bother compiling the
+       binary compatibility g_io_channel_win32_new_stream_socket()
+       function that has not been mentioned in any header since 2.0 on
+       Win64.
+
+       * glib/glib.symbols: Mark it, too, private, and don't export it on
+       Win64.
 
 2008-08-21  Tor Lillqvist  <tml@novell.com>
 
index 711f5cf..c5a94a3 100644 (file)
@@ -2131,6 +2131,8 @@ g_io_channel_win32_make_pollfd (GIOChannel   *channel,
   fd->events = condition;
 }
 
+#ifndef _WIN64
+
 /* Binary compatibility */
 GIOChannel *
 g_io_channel_win32_new_stream_socket (int socket)
@@ -2138,5 +2140,7 @@ g_io_channel_win32_new_stream_socket (int socket)
   return g_io_channel_win32_new_socket (socket);
 }
 
+#endif
+
 #define __G_IO_WIN32_C__
 #include "galiasdef.c"
index 73e2ae1..06e6ea2 100644 (file)
@@ -501,7 +501,9 @@ g_io_channel_win32_make_pollfd
 g_io_channel_win32_new_fd
 g_io_channel_win32_new_messages
 g_io_channel_win32_new_socket
-g_io_channel_win32_new_stream_socket
+#ifndef _WIN64
+g_io_channel_win32_new_stream_socket PRIVATE
+#endif
 g_io_channel_win32_poll
 g_io_channel_win32_set_debug
 #endif