Created
March 6, 2010 23:07
-
-
Save tito/324005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef WIN32 | |
#include <winsock2.h> | |
#include <windows.h> | |
#endif | |
+ in main() | |
#ifdef WIN32 | |
WORD wVersionRequested; | |
WSADATA wsaData; | |
int err; | |
wVersionRequested = MAKEWORD( 2, 2 ); | |
err = WSAStartup( wVersionRequested, &wsaData ); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment