Commit c2ade861 authored by deuce's avatar deuce
Browse files

Pretend Borland compilers are Microsoft compilers so that they don't use GCC

conventions when using the ws2tcpip.h that comes with Borland (sigh).
parent 3178e3ed
......@@ -48,7 +48,14 @@
#ifndef _WINSOCKAPI_
#include <winsock2.h> /* socket/bind/etc. */
#include <mswsock.h> /* Microsoft WinSock2 extensions */
#if defined(__BORLANDC__)
// Borland C++ builder 6 comes with a broken ws2tcpip.h header for GCC.
#define _MSC_VER 7
#endif
#include <ws2tcpip.h> /* More stuff */
#if defined(__BORLANDC__)
#undef _MSC_VER
#endif
#define SOCK_MAXADDRLEN sizeof(SOCKADDR_STORAGE)
/* Let's agree on a standard WinSock symbol here, people */
#define _WINSOCKAPI_
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment