#ifndef _netsock_h
#define _netsock_h
#define FD_SETSIZE 1024
+#if _WIN32
+#define WINVER 0x0600
+#define _WIN32_WINNT 0x0600
+#endif
// Standard headers
#include <stdio.h>
// Windows
#if defined(_WIN32)
-#ifndef I_KNOW_HOW_TO_USE_A_LINKER
-#pragma message("Warning: Windows detected.")
-#pragma message("IMPORTANT: COMPILE WITH -lws2_32")
-#pragma comment(lib, "ws2_32.lib")
-#endif
-//#include <WinSock2.h>
-//#include <WS2tcpip.h>
-//#include <Windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#ifdef _WIN64
-//#define PRISocket "lu" // The format string for SOCKET
#define PRISocket "llu" // The format string for SOCKET
#else
#define PRISocket "u" // The format string for SOCKET
CFLAGS=-Wall -Wextra -DHAS_TLS
LDLIBS=-ltls
CC.w32=i686-w64-mingw32-gcc
-CFLAGS.w32=-Wall -Wextra -DI_KNOW_HOW_TO_USE_A_LINKER -DWINVER=0x0600 -D_WIN32_WINNT=0x0600
+CFLAGS.w32=-Wall -Wextra
LDLIBS.w32=-lws2_32