--- np2/common/rect.h 2005/02/07 14:46:08 1.2 +++ np2/common/rect.h 2005/03/20 06:09:16 1.3 @@ -1,8 +1,4 @@ -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { int x; int y; @@ -34,6 +30,10 @@ typedef struct { } UNIRECT; +#ifdef __cplusplus +extern "C" { +#endif + BRESULT rect_in(const RECT_T *rect, int x, int y); int rect_num(const RECT_T *rect, int cnt, int x, int y); BRESULT rect_isoverlap(const RECT_T *r1, const RECT_T *r2);