nanogui: compile problem in mwin/winuser.c
Subject:
compile problem in mwin/winuser.c
From:
Alexander Neundorf ####@####.####
Date:
22 Sep 2005 01:13:28 +0100
Message-Id: <200509212216.59192.neundorf@kde.org>
Hi,
I don't have success compiling the windows API.
When compiling src/mwin/winuser.c I get the following error:
/usr/src/ecos/packages/services/gfx/mw/current/src/mwin/winuser.c: In function
`MwHandleTimers':
/usr/src/ecos/packages/services/gfx/mw/current/src/mwin/winuser.c:1496: too
many arguments to function
make[4]: *** [src/mwin/winuser.o.d] Error 1
line 1496 looks like:
tm->lpTimerFunc ( tm->hwnd, WM_TIMER, tm->idTimer, dwTime );
lpTimerFunc is a member of struct timer and is a TIMERPROC:
struct timer { /* private timer structure*/
HWND hwnd; /* window associated with timer, NULL if none*/
UINT idTimer; /* id for timer*/
UINT uTimeout; /* timeout value, in msecs*/
DWORD dwClockExpires; /* GetTickCount timer expiration value*/
TIMERPROC lpTimerFunc; /* callback function*/
struct timer *next;
};
in windef.h:
typedef int (FAR WINAPI *FARPROC)();
in winuser.h:
typedef FARPROC TIMERPROC;
So, IMO lpTimerFunc should take zero arguments but is called with 4 arguments.
What's the right way to make it compile ?
Bye
Alex
--
Work: ####@####.#### - http://www.jenoptik-los.de
Home: ####@####.#### - http://www.kde.org
####@####.#### - http://www.neundorf.net