Re: Building PostgreSQL 9.6devel sources with MicrosoftVisual C++ 2015?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Building PostgreSQL 9.6devel sources with MicrosoftVisual C++ 2015?
Дата
Msg-id 29010.1453412564@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Building PostgreSQL 9.6devel sources with MicrosoftVisual C++ 2015?  (Yury Zhuravlev <u.zhuravlev@postgrespro.ru>)
Ответы Re: Building PostgreSQL 9.6devel sources with MicrosoftVisual C++ 2015?  (Yury Zhuravlev <u.zhuravlev@postgrespro.ru>)
Список pgsql-general
Yury Zhuravlev <u.zhuravlev@postgrespro.ru> writes:
> +#if _MSC_VER >= 1800
> +    //From VS2012.
> +    typedef struct localerefcount
> +    {
> +        char *locale;
> +        wchar_t *wlocale;
> +     ... etc etc ...

Ick.  Even if that works today, it seems absolutely guaranteed to fail
in future, as soon as Microsoft either puts back the visible declaration
or changes the struct contents.  If they've made a conscious decision
to not export the struct anymore, it's likely because they intend to
change it ... so I'd put the half-life of this "fix" at no more than one
Visual Studio release.

Hopefully, if they removed the visible declaration intentionally, they
provided some other way to get at those locale names.  That's what we
need to be looking for, not hoping that direct access to undocumented
structures will continue to work.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Steve Litt
Дата:
Сообщение: Re: CoC [Final]
Следующее
От: Johannes
Дата:
Сообщение: Re: long transfer time for binary data