Re: Building with Visual C++ - Mailing list pgsql-patches

From Qingqing Zhou
Subject Re: Building with Visual C++
Date
Msg-id e2hcrs$1fru$1@news.hub.org
Whole thread Raw
In response to Building with Visual C++  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-patches
""Magnus Hagander"" <mha@sollentuna.net> wrote
> I've been working on getting the full backend to compile and run using
> Visual C++ instead of mingw/gcc, and have made some good progress.
>

This is great!

> *) Add s_lock implementation based on InterlockedCompareExchange instead
> of assembly code (gcc style asm not supported, and this should probably
> be about as fast from what I hear)

_InterlockedCompareExchange is even better IMHO ...

> src/port/dirent.c - opendir/readdir/closedir implementation for win32,
> that doesn't even have the bugs mingw had in it ;)

But seems it has a typo ;-) Check out this line:

   errno = GetLastError();

Regards,
Qingqing




pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Building with Visual C++
Next
From: Bruce Momjian
Date:
Subject: Re: Additional current timestamp values