From f7b145472b5d4cdd0cc4c3aaafb32b27e6a82fba Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 13 Jul 2011 11:26:29 +0000
Subject: [PATCH] Added hacks to work with C++Builder 2010: Need HAS_STDINT_H
 defined (since it has stdint.h) and need to pre-define _WIN32_WINNT since if
 it's set automatically to 0x600 or larger, mswsockdef.h causes unresolved
 symbol: sockaddr_size.

---
 src/build/Common.bmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/build/Common.bmake b/src/build/Common.bmake
index 0ad06a5d07..0fe40ca255 100644
--- a/src/build/Common.bmake
+++ b/src/build/Common.bmake
@@ -139,6 +139,9 @@ MKSHLIB =       $(CC) -WD
 CFLAGS	=	$(CFLAGS) -Od -D_DEBUG 
 !endif
 
+# Required for C++Builder 2010
+CFLAGS	=	$(CFLAGS) -DHAS_STDINT_H -D_WIN32_WINNT=0x502
+
 # Debug or release build?
 !ifdef DEBUG
 BUILD	=	debug
-- 
GitLab