aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2020-05-14 09:23:56 +0530
committerAmit Kapila <akapila@postgresql.org>2020-05-14 09:24:33 +0530
commita169155453e3d1c40c729a5318fd5298a990e5b0 (patch)
treeb1cc28da267e13f12d68f5815e259657cfd5dcd0 /src/backend/access/gist/gistvalidate.c
parentcee9cadb592fed6a6cb126f02002aba029544bd8 (diff)
downloadpostgresql-a169155453e3d1c40c729a5318fd5298a990e5b0.tar.gz
postgresql-a169155453e3d1c40c729a5318fd5298a990e5b0.zip
Fix the MSVC build for versions 2015 and later.
Visual Studio 2015 and later versions should still be able to do the same as Visual Studio 2012, but the declaration of locale_name is missing in _locale_t, causing the code compilation to fail, hence this falls back instead on to enumerating all system locales by using EnumSystemLocalesEx to find the required locale name.  If the input argument is in Unix-style then we can get ISO Locale name directly by using GetLocaleInfoEx() with LCType as LOCALE_SNAME. In passing, change the documentation references of the now obsolete links. Note that this problem occurs only with NLS enabled builds. Author: Juan José Santamaría Flecha, Davinder Singh and Amit Kapila Reviewed-by: Ranier Vilela and Amit Kapila Backpatch-through: 9.5 Discussion: https://postgr.es/m/CAHzhFSFoJEWezR96um4-rg5W6m2Rj9Ud2CNZvV4NWc9tXV7aXQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions