bugGNUstep - Bugs: bug #17464, Wrap external function...

Group
 
 

bug #17464: Wrap external function declarations in 'extern "C"'

Submitter:  Larry Campbell <lcampbel>
Submitted:  Fri 18 Aug 2006 07:06:55 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Sep 2006 10:21:16 AM UTC, comment #1: 

Done ... thanks.

Richard Frith-Macdonald <CaS>
Group Member
Fri 18 Aug 2006 07:06:55 PM UTC, original submission:  

External function declarations in header files should be wrapped inside

    extern "C" {}

so that Objective-C++ code can link to the functions successfully. The simplest approach would probably be to wrap all Foundation headers between

    #ifdef __cplusplus
    extern "C" {
    #endif

and

    #ifdef __cplusplus
    }
    #endif


Larry Campbell <lcampbel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-09-13 CaS StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code