Re: Making a new GCC routine visible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May 19, 2012, at 2:16 PM, Jonathan Wakely wrote:

> It's better to make the header self-sufficient:
> 
> #ifdef __cplusplus
> extern "C" {
> #endif
> void * domp_malloc(size_t);
> #ifdef __cplusplus
> extern "C" {
> #endif


Thank you--I'll do that.  It says here 
http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
that "__cplusplus" is a standard symbol, so it should work even with other compilers.


Amittai Aviram



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux