--- np2/x11/np2.h 2008/03/18 15:33:14 1.19 +++ np2/x11/np2.h 2011/01/15 19:16:58 1.22 @@ -1,5 +1,3 @@ -/* $Id: np2.h,v 1.19 2008/03/18 15:33:14 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; @@ -114,7 +110,6 @@ extern char bmpfilefolder[MAX_PATH]; extern char modulefile[MAX_PATH]; extern char statpath[MAX_PATH]; extern char fontname[1024]; -extern char fontfilename[MAX_PATH]; extern char np2appname[MAX_PATH]; extern const char np2flagext[]; @@ -132,8 +127,6 @@ int mainloop(void *); extern int mmxflag; int havemmx(void); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* NP2_X11_NP2_H__ */