SDL_net 1.1.1 patch for VisualC

Hi,

I have made VisualC 5.0 project files for SDL_net. They will generate
sdl_net.dll.
SDL_net.h needs to be fixed, because Init and Quit are not exported:

extern DECLSPEC int SDLNet_Init(void);
extern DECLSPEC void SDLNet_Quit(void);

The DECLSPEC was missing.
In SDLnetTCP.c is the prepocessor symbol #warning, wich does not work
with VisualC, it needs to be removed or ifdef with _MSC_VER.

Proff–

Florian ‘Proff’ Schulze - @Florian_Schulze
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl_net1.1.1_visualc.zip
Type: application/x-zip-compressed
Size: 1375 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000807/8e297ad3/attachment.bin

Florian ‘Proff’ Schulze wrote (a while back):

In SDLnetTCP.c is the prepocessor symbol #warning, wich
does not work with VisualC, it needs to be removed or
ifdef with _MSC_VER.

Actually, the reason the #warning is there in the first place should be
addressed. Has anyone looked at non-blocking sockets under Win32? Winsock
uses SYSV ioctlsocket with FIONBIO to handle non-blocking mode.

Here’s a link if anyone is interested.

http://support.microsoft.com/support/kb/articles/q181/6/11.asp

  • Randi

Regimental Command
Generic Armored Combat System
http://regcom.sourceforge.net

Hi,

I have attached a new zip, because the old VisualC Project files made a
static library, not the dll. Also the two fixed files are in that zip.

Proff–

Florian ‘Proff’ Schulze - @Florian_Schulze
Member: TeamTNT - http://www.teamtnt.com
Homepage: - http://proff.fly.to
ICQ#: - 40510245
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl_net1.1.1_visualc.zip
Type: application/x-zip-compressed
Size: 9389 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000906/2c79db84/attachment.bin