> -----Original Message-----
> From: Sergei Antonov [mailto:saproj_at_gmail.com]
> Sent: donderdag 14 maart 2013 13:33
> To: dev_at_subversion.apache.org
> Subject: Re: Windows build still requires apr-util?
>
> On 13 March 2013 19:15, Bert Huijben <bert_at_qqmail.nl> wrote:
> >
> >
> >> -----Original Message-----
> >> From: Sergei Antonov [mailto:saproj_at_gmail.com]
> >> Sent: woensdag 13 maart 2013 18:47
> >> To: dev_at_subversion.apache.org
> >> Subject: Re: Windows build still requires apr-util?
> >>
> >> Gentle reminder: VS 2010 doesn't compile the latest revision.
> >> Please, add "#include <time.h>" into
> >> subversion\libsvn_subr\win32_crashrpt.c and commit.
> >
> > I think that is somehow dependant on other settings as it just compiles for
> me with 2010 (and 2012 and 2008).
>
> Do you compile this file at all?
>
> > Can you explain what makes your environment different
>
> You do not have SVN_USE_WIN32_CRASHHANDLER?
> You use different revision? (mine is 1456399)
>
> Open VS 2010 .sln, navigate to 'win32_crashrpt.c' in project
> 'libsvn_subr', choose Build->Compile. What do you see? I see this:
>
> 1>------ Build started: Project: libsvn_subr (Libraries\libsvn_subr),
> Configuration: Debug Win32 ------
> 1>Build started 14.03.2013 13:26:47.
> 1>ClCompile:
> 1> win32_crashrpt.c
> 1>..\..\..\subversion\libsvn_subr\win32_crashrpt.c(706): error C4013:
> 'time' undefined; assuming extern returning int
> 1>..\..\..\subversion\libsvn_subr\win32_crashrpt.c(707): error C4013:
> 'strftime' undefined; assuming extern returning int
> 1>..\..\..\subversion\libsvn_subr\win32_crashrpt.c(707): error C4013:
> 'localtime' undefined; assuming extern returning int
>
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:00.96
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
>
> > , because just adding includes everywhere is not the way to fix these things
>
> Every translation unit with a call to localtime/time/strftime must
> include time.h. So it IS a way to fix these things.
My apr.h includes time.h.
apr.hw defines APR_HAVE_TIME and the generated apr.h then includes time.h for me.
Why should we include this file manually?
Bert
Received on 2013-03-14 14:16:45 CET