Subject: Re: libssh2 master c585828... Fix gettimeofday to compile with Visual C++ 6.

Re: libssh2 master c585828... Fix gettimeofday to compile with Visual C++ 6.

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Fri, 12 Mar 2010 15:08:36 +0100

I assume it is included by default:

C:\tmp\MinGW 3.4.5\include>g -n _mingw.h *
_mingw.h:3: * _mingw.h
assert.h:18:#include <_mingw.h>
c++/3.4.5/mingw32/bits/gthr-default.h:68:#include <_mingw.h>
c++/3.4.5/mingw32/bits/gthr-default.h:357:extern int __mingwthr_key_dtor
(unsigned long, void (*) (void *));
c++/3.4.5/mingw32/bits/gthr-default.h:524: status = __mingwthr_key_dtor
(*key, dtor);
complex.h:25:#include <_mingw.h>
conio.h:16:#include <_mingw.h>
ctype.h:15:#include <_mingw.h>
direct.h:15:#include <_mingw.h>
dirent.h:12:#include <_mingw.h>
dos.h:15:#include <_mingw.h>
errno.h:15:#include <_mingw.h>
excpt.h:18:#include <_mingw.h>
fcntl.h:15:#include <_mingw.h>
fenv.h:4:#include <_mingw.h>
float.h:25:#include <_mingw.h>
getopt.h:33:#include <_mingw.h>
inttypes.h:6:#include <_mingw.h>
io.h:14:#include <_mingw.h>
libgen.h:17:#include <_mingw.h>
limits.h:21:#include <_mingw.h>
locale.h:16:#include <_mingw.h>
malloc.h:18:#include <_mingw.h>
math.h:20:#include <_mingw.h>
mbctype.h:25:#include <_mingw.h>
mbstring.h:25:#include <_mingw.h>
process.h:15:#include <_mingw.h>
search.h:27:#include <_mingw.h>
setjmp.h:16:#include <_mingw.h>
share.h:15:#include <_mingw.h>
signal.h:15:#include <_mingw.h>
stdio.h:19:#include <_mingw.h>
stdlib.h:15:#include <_mingw.h>
string.h:15:#include <_mingw.h>
sys/locking.h:15:#include <_mingw.h>
sys/stat.h:16:#include <_mingw.h>
sys/timeb.h:15:#include <_mingw.h>
sys/types.h:15:#include <_mingw.h>
sys/utime.h:14:#include <_mingw.h>
tchar.h:26:#include <_mingw.h>
time.h:15:#include <_mingw.h>
wchar.h:18:#include <_mingw.h>
wctype.h:27:#include <_mingw.h>

On 12 March 2010 13:54, Alexander Lamaison <swish_at_lammy.co.uk> wrote:

> On 12 March 2010 12:50, Steven Van Ingelgem <steven_at_vaningelgem.be> wrote:
> >
> > On 12 March 2010 12:53, Alexander Lamaison <swish_at_lammy.co.uk> wrote:
> >>
> >> On 12 March 2010 11:37, Mikhail Gusarov <dottedmag_at_dottedmag.net>
> wrote:
> >> >
> >> > Twas brillig at 11:32:44 12.03.2010 UTC+00 when libssh2_at_git.stuge.sedid
> >> > gyre and gimble:
> >> >
> >> > l> - unsigned long long ns100; /*time since 1 Jan 1601 in 100ns
> >> > units */
> >> > l> + unsigned __int64 ns100; /*time since 1 Jan 1601 in 100ns
> units
> >> > */
> >> >
> >> > Does it work with gcc now?
> >>
> >> I assume you mean when compiling with gcc on/for Windows? Good point.
> >> Does Mingw etc. support __int64?
> >
> > _mingw.h: __int64 define to be long long.
> Using a
> > typedef
> > _mingw.h: doesn't work for "unsigned
> > __int64"
> > _mingw.h:# ifndef __int64
> > _mingw.h:# define __int64 long long
>
> Is _mingw.h included by default or do we have to do it explicitly?
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-12