Re: gnome-defs



Hello,

I understand it like this:

Including these macros the C++ compiler adds 'extern C' to the function headers. If we run a C compiler it does nothing. This way C++ functions can be accessed from C code. If they are already C functions, then it does nothing.

Allows access to C++ functions from C.


Pieter Engelen wrote:
Hi,

I'm porting a tool from linux to windows.

This tool uses gnome-defs. I have looked at
http://developer.gnome.org/doc/API/libgnome/gnome-gnome-defs.html

But I don't understand what they mean with:
"This module only defines two macros for wrapping public function
interface declarations in a C-accesible way. They are usually used in
header files. They are empty macros for C compilation and they map to
extern "C" for C++ compilation."

Could some one explain this to me please.

How do I port a header file Whit this in?


Greetz
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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