This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.24,XP: time.h + mrtd switch in gcc conflicting types


On Fri, Apr 27, 2007 at 02:20:03PM +0100, Angel Robert Lynas wrote:
>Hi all.  There seems to be an issue with "time.h" under some
>circumstances with a new Cygwin version.  Using a simple test program (
>called t.c):
>
>#include <time.h>
>main() {}
>
>The problem arises when compilation is attempted with the -mrtd switch,
>the following errors arising:
>
>            ------------------------------------
>In file included from t.c:1:
>/usr/include/time.h:150: error: conflicting types for 'clock_getres'
>/usr/include/cygwin/time.h:20: error: previous declaration of
>'clock_getres' was here
>/usr/include/time.h:150: error: conflicting types for 'clock_getres'
>/usr/include/cygwin/time.h:20: error: previous declaration of
>'clock_getres' was here
>/usr/include/time.h:171: error: conflicting types for 'nanosleep'
>/usr/include/cygwin/time.h:18: error: previous declaration of 'nanosleep'
>was here
>/usr/include/time.h:171: error: conflicting types for 'nanosleep'
>/usr/include/cygwin/time.h:18: error: previous declaration of 'nanosleep'
>was here
>            ------------------------------------

I've added __cdecl's to the function declarations in
include/cygwin/time.h.  The change is in CVS and will be in the next
release but that is not likely to be for some time.  So, you may want to
make the change to the header files on your system by hand.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]