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 - mingw-w64 support
Summary: mingw-w64 support
Status: RESOLVED FIXED
Alias: None
Product: SDL_net
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 07:24 UTC by Ozkan Sezer
Modified: 2011-02-17 12:39 UTC (History)
0 users

See Also:


Attachments
x86_64 mingw-w64 support for SDL_net (355 bytes, patch)
2010-02-14 07:25 UTC, Ozkan Sezer
Details | Diff
x86_64 mingw-w64 support for SDL_net (785 bytes, patch)
2010-03-10 10:20 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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