[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problems with BDB file access

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-01-21 09:51:45 CET

Jens Peters wrote:
>> Oh, and don't forget to set the define for apr-util and the
>> Subversion libs too - otherwise you will still get crashs.
>
> I got a little bit tired of patching all the header files. Do you know a way

I don't think you have to patch all header files. Usually, there's one
header file which is included in every other header file. At least,
that's the case for all apr libs and Subversion.

> to tell VC to use _USE_32BIT_TIME_T everytime? I tried to put the define at
> the top of the crtdefs.h. It works fine for _CRT_SECURE_NO_DEPRECATE and
> _CRT_NONSTDC_NO_DEPRECATE, but with _USE_32BIT_TIME_T the compiler gives a
> lot of warnings and errors like:
>
> wtime.inl(37) : incompatible types - from 'const time_t *' to 'const
> __time32_t *'
> sys/stat.inl(49) : error C2466: cannot allocate an array of constant size 0
>
> Thus the define comes to late. Is there an Ueber-header file? I remember my

Are you sure it comes too late? Maybe it comes too early!
I would *never* change a header file of the CRT - way too risky.

> c++ teacher told something about an standard include you don't have to
> define in old borland c++ for ms-dos times, but I cant remember it (what a
> shame :) ).
>
> I know I shouldn't play with the system includes, but since I use VC++ 2005
> just for compiling SVN and all the stuff around its fine for me :)

I only had to patch the header file of the BDB. For apr and Subversion,
it was enough to pass _USE_32BIT_TIME_T as a precompiler directive.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Jan 21 09:51:55 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.