nanogui: compile problem in mwin/winuser.c


Previous by date: 22 Sep 2005 05:08:35 +0100 no MMU,how to port nanox, DQ
Next by date: 22 Sep 2005 05:08:35 +0100 Re: no MMU,how to port nanox, Greg Haerr
Previous in thread: 22 Sep 2005 05:08:35 +0100 Re: compile problem in mwin/winuser.c, Alexander Neundorf
Next in thread:

Subject: Re: [nanogui] compile problem in mwin/winuser.c
From: "Greg Haerr" ####@####.####
Date: 22 Sep 2005 05:08:35 +0100
Message-Id: <089d01c5bf28$c1aa07b0$6401a8c0@winXP>

: in windef.h:
: typedef int (FAR WINAPI *FARPROC)();

Strange that you needed to add (void) above.  It's
my understanding that by not including anything
within the parens, this says that the number of
args isn't specified...   (K&R style).  By adding
(void), this says that FARPROC doesn't ever
take any args, yet we call it with 4...

What version gcc are you running for your ecos
compiles?  This all works fine on my system, of
course.

Regards,

Greg


:
: 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
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
:
:


Previous by date: 22 Sep 2005 05:08:35 +0100 no MMU,how to port nanox, DQ
Next by date: 22 Sep 2005 05:08:35 +0100 Re: no MMU,how to port nanox, Greg Haerr
Previous in thread: 22 Sep 2005 05:08:35 +0100 Re: compile problem in mwin/winuser.c, Alexander Neundorf
Next in thread:


Powered by ezmlm-browse 0.20.