--- np2/macosx/mousemng.cpp 2003/10/19 14:48:07 1.2 +++ np2/macosx/mousemng.cpp 2003/10/23 06:26:16 1.4 @@ -1,4 +1,6 @@ + #if defined(NP2GCC) + #include "compiler.h" #include "np2.h" #include "mousemng.h" @@ -28,12 +30,12 @@ void mouseonoff(BYTE flg) { if ((lastmouse ^ flg) & 1) { lastmouse = (flg & 1); if (lastmouse & 1) { - CGDisplayHideCursor(kCGDirectMainDisplay); + HideCursor(); getmaincenter(&cp); CGWarpMouseCursorPosition(CGPointMake(cp.h, cp.v)); } else { - CGDisplayShowCursor(kCGDirectMainDisplay); + ShowCursor(); } } } @@ -129,10 +131,10 @@ BYTE mouse_btn(BYTE btn) { } #else + #include "compiler.h" #include "mousemng.h" - BYTE mousemng_getstat(SINT16 *x, SINT16 *y, int clear) { *x = 0; @@ -141,4 +143,5 @@ BYTE mousemng_getstat(SINT16 *x, SINT16 return(0xa0); } -#endif \ No newline at end of file +#endif +