--- np2/x11/trace.h 2011/01/15 14:16:29 1.6 +++ np2/x11/trace.h 2011/01/15 19:16:58 1.7 @@ -1,9 +1,7 @@ #ifndef NP2_X11_TRACE_H__ #define NP2_X11_TRACE_H__ -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS extern int trace_flag; @@ -31,8 +29,6 @@ void trace_fmt(const char *str, ...) G_G #endif /* !TRACE */ -#ifdef __cplusplus -}; -#endif +G_END_DECLS #endif /* NP2_X11_TRACE_H__ */