Re: svn revision 5009 - compile error

Giganews Newsgroups
Subject: Re: svn revision 5009 - compile error
Posted by:  Remy Lebeau (re…@lebeausoftware.org)
Date: Tue, 11 Jun 2013

Pibì wrote:

> IdWship6.pas(469) Warning: W1000 Symbol 'GIdIPv6FuncsAvailable' is deprecated

The GIdIPv6FuncsAvailable variable is now deprecated. Indy now exposes getnameinfo(),
getaddrinfo(), and freeaddrinfo() socket functions on pre-IPv6 versions of
Windows. GIdIPv6FuncsAvailable was previously used to know whether those
functions were available or not. That is no longer needed.

> IdWship6.pas(681) Error: E2441 Inline function declared in interface section
must
> not use local symbol 'PPaddrinfo'

Which version of Delphi are you using? I do not get that error in XE2. There
are no inline functions declared in the interface section. Line 681 is the
final "end" statement of the WspiapiQueryDNS() function, which is only declared
and used locally in the implementation section. However, I just noticed that
WspiapiQueryDNS() declares a local PPaddrInfo type, but ppAddrInfo is already
defined earlier in the unit. So I have fixed that.

--
Remy Lebeau (Indy Team)

Replies

None

In response to

svn revision 5009 - compile error posted by Pibì on Tue, 11 Jun 2013