extern "C" { .. } macros in glib.h



Hi,

woudn't something like gnome-libs/libgnome/gnome-defs.h make sense in
glib.h. It would make life a bit easier for library writers.

here comes gnome-libs/libgnome/gnome-defs.h:

#ifdef __cplusplus 
#define BEGIN_GNOME_DECLS extern "C" {
#define END_GNOME_DECLS }
#else
#define BEGIN_GNOME_DECLS
#define END_GNOME_DECLS
#endif

Bye,
Sebastian

-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |      är himmlen så förunerligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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