Hi!
I'm using Synapse with C++ Builder XE7 (and XE6 before). The patch
attached is needed for getting over the following compile errors:
[bcc32 Error] synsock.hpp(685): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(686): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(687): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(688): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(689): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(690): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(691): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(706): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(707): Declaration terminated incorrectly
[bcc32 Error] synsock.hpp(708): Declaration terminated incorrectly
.....
I think it's because of double declarations for certain constants and
the patch "undefines" the relevant constants in the upper part of the
header file "synsock.hpp" which C++ Builder generates from the pascal files.
Thanks,
Dirk
Index: sswin32.inc
===================================================================
--- sswin32.inc (revision 185)
+++ sswin32.inc (working copy)
@@ -234,6 +234,41 @@
(*$HPPEMIT '#undef PVD_CONFIG' *)
(*$HPPEMIT '#undef AF_INET6' *)
(*$HPPEMIT '#undef PF_INET6' *)
+ (*$HPPEMIT '#undef NI_MAXHOST' *)
+ (*$HPPEMIT '#undef NI_MAXSERV' *)
+ (*$HPPEMIT '#undef NI_NOFQDN' *)
+ (*$HPPEMIT '#undef NI_NUMERICHOST' *)
+ (*$HPPEMIT '#undef NI_NAMEREQD' *)
+ (*$HPPEMIT '#undef NI_NUMERICSERV' *)
+ (*$HPPEMIT '#undef NI_DGRAM' *)
+ (*$HPPEMIT '#undef AI_PASSIVE' *)
+ (*$HPPEMIT '#undef AI_CANONNAME' *)
+ (*$HPPEMIT '#undef AI_NUMERICHOST' *)
+ (*$HPPEMIT '#undef EWOULDBLOCK' *)
+ (*$HPPEMIT '#undef EINPROGRESS' *)
+ (*$HPPEMIT '#undef EALREADY' *)
+ (*$HPPEMIT '#undef ENOTSOCK' *)
+ (*$HPPEMIT '#undef EDESTADDRREQ' *)
+ (*$HPPEMIT '#undef EMSGSIZE' *)
+ (*$HPPEMIT '#undef EPROTOTYPE' *)
+ (*$HPPEMIT '#undef ENOPROTOOPT' *)
+ (*$HPPEMIT '#undef EPROTONOSUPPORT' *)
+ (*$HPPEMIT '#undef EOPNOTSUPP' *)
+ (*$HPPEMIT '#undef EAFNOSUPPORT' *)
+ (*$HPPEMIT '#undef EADDRINUSE' *)
+ (*$HPPEMIT '#undef EADDRNOTAVAIL' *)
+ (*$HPPEMIT '#undef ENETDOWN' *)
+ (*$HPPEMIT '#undef ENETUNREACH' *)
+ (*$HPPEMIT '#undef ENETRESET' *)
+ (*$HPPEMIT '#undef ECONNABORTED' *)
+ (*$HPPEMIT '#undef ECONNRESET' *)
+ (*$HPPEMIT '#undef ENOBUFS' *)
+ (*$HPPEMIT '#undef EISCONN' *)
+ (*$HPPEMIT '#undef ENOTCONN' *)
+ (*$HPPEMIT '#undef ETIMEDOUT' *)
+ (*$HPPEMIT '#undef ECONNREFUSED' *)
+ (*$HPPEMIT '#undef ELOOP' *)
+ (*$HPPEMIT '#undef EHOSTUNREACH' *)
{$ENDIF}
{$IFDEF FPC}
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public