We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 950

Summary: mingw-w64 support
Product: SDL_net Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Windows (All)   
Attachments: x86_64 mingw-w64 support for SDL_net
x86_64 mingw-w64 support for SDL_net

Description Ozkan Sezer 2010-02-14 07:24:17 UTC
The attached tiny patch makes SDL_net to link to ws2_32 instead of wsock32 when using mingw-w64 and compiling for win64 (x86_64). (libwsock32.a is not provided for x64 in mingw-w64.)  Compile tested against SDL-1.2 (patched according to bug #943) and using a mingw-w64 cross-toolchain configured for x86_64-w64-mingw32.

--
Ozkan
Comment 1 Ozkan Sezer 2010-02-14 07:25:07 UTC
Created attachment 492 [details]
x86_64 mingw-w64 support for SDL_net
Comment 2 Ozkan Sezer 2010-03-10 10:20:36 UTC
Created attachment 499 [details]
x86_64 mingw-w64 support for SDL_net

The first version of the patch missed changing SDLnetsys.h for winsock2 includes.
The attached new version handles that. Aside from mingw-w64, there is no reason 
to use the obsoleted winsock-1.x in win64 which already always includes winsock2.
Comment 3 Sam Lantinga 2011-02-17 12:39:00 UTC
This is in, thanks!
http://hg.libsdl.org/SDL_net/rev/859764335156