2005-02-05 Tor Lillqvist <tml@novell.com>
+ * configure.in (G_LIBS_EXTRA)
+ * glib/giowin32.c: I think we can include <winsock2.h> and link
+ with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
+ and it's available as an update for it. Not that we use any actual
+ Winsock 2 -only features, but still, simpler to link directly with
+ ws2_32.dll instead of going through wsock32.dll.
+
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)
2005-02-05 Tor Lillqvist <tml@novell.com>
+ * configure.in (G_LIBS_EXTRA)
+ * glib/giowin32.c: I think we can include <winsock2.h> and link
+ with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
+ and it's available as an update for it. Not that we use any actual
+ Winsock 2 -only features, but still, simpler to link directly with
+ ws2_32.dll instead of going through wsock32.dll.
+
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)
2005-02-05 Tor Lillqvist <tml@novell.com>
+ * configure.in (G_LIBS_EXTRA)
+ * glib/giowin32.c: I think we can include <winsock2.h> and link
+ with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
+ and it's available as an update for it. Not that we use any actual
+ Winsock 2 -only features, but still, simpler to link directly with
+ ws2_32.dll instead of going through wsock32.dll.
+
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)
2005-02-05 Tor Lillqvist <tml@novell.com>
+ * configure.in (G_LIBS_EXTRA)
+ * glib/giowin32.c: I think we can include <winsock2.h> and link
+ with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
+ and it's available as an update for it. Not that we use any actual
+ Winsock 2 -only features, but still, simpler to link directly with
+ ws2_32.dll instead of going through wsock32.dll.
+
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)
G_LIBS_EXTRA="-luser32 -lkernel32"
;;
*-*-mingw*)
- G_LIBS_EXTRA="-lwsock32 -lole32"
+ G_LIBS_EXTRA="-lws2_32 -lole32"
;;
*)
G_LIBS_EXTRA=""
#include <stdlib.h>
#include <windows.h>
-#include <winsock.h> /* Not everybody has winsock2 */
+#include <winsock2.h>
#include <fcntl.h>
#include <io.h>
#include <process.h>