Re: Building with Visual C++

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Building with Visual C++
Дата
Msg-id e2hcrs$1fru$1@news.hub.org
обсуждение исходный текст
Ответ на Building with Visual C++  ("Magnus Hagander" <mha@sollentuna.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Building with Visual C++
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Additional current timestamp values