--- np2/x11/np2.h 2011/01/15 16:14:24 1.20 +++ np2/x11/np2.h 2011/01/15 19:16:58 1.22 @@ -1,5 +1,3 @@ -/* $Id: np2.h,v 1.20 2011/01/15 16:14:24 monaka Exp $ */ - #ifndef NP2_X11_NP2_H__ #define NP2_X11_NP2_H__ @@ -7,6 +5,8 @@ #include "joymng.h" +G_BEGIN_DECLS + typedef struct { BYTE port; BYTE def_en; @@ -89,10 +89,6 @@ enum { INTERP_HYPER = 3 }; -#ifdef __cplusplus -extern "C" { -#endif - /* np2.c */ extern volatile sig_atomic_t np2running; extern NP2OSCFG np2oscfg; @@ -131,8 +127,6 @@ int mainloop(void *); extern int mmxflag; int havemmx(void); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* NP2_X11_NP2_H__ */