This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: C++ safe include files
- To: Richard Panton <rpanton at 3glab dot com>
- Subject: Re: [ECOS] C++ safe include files
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 28 Mar 2001 18:49:28 +0100
- Cc: eCos Discussion List <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <Pine.LNX.4.10.10103281704050.1541-200000@rpanton.3glab.com>
Richard Panton wrote:
>
> I've noticed that a handful of functions within the networking package
> appear to not have the correct type-linkage when compiling C++ programs
> (i.e. they are declared as extern - C++ linkage, when the actual routines
> are C linkage).
>
> I've attached a patch that inserts the 'externC', or 'extern "C" {'
> constructions into the relevant place in the header files.
>
> Additionally, the (empty) function getservbynumber() is present, whilst
> the header file refers to the (correct) getservbyport() function. This has
> also been corrected in the patch.
Applied. Thanks!
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine