Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix set/get locale for error string never work in mingw #4162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimying
Copy link
Contributor

@jimying jimying commented Nov 17, 2024

In mingw, autoconf set PJ_WIN32_WINNT/WINVER to 0x0400,
but SetThreadLocale/GetThreadLocale need WINVER >= 0x0500

(PJ_STRERROR_USE_WIN_GET_THREAD_LOCALE==1) && (WINVER >= 0x0500)

#if defined(PJ_STRERROR_USE_WIN_GET_THREAD_LOCALE) && (PJ_STRERROR_USE_WIN_GET_THREAD_LOCALE==1) && (WINVER >= 0x0500)

fixed by set PJ_WIN32_WINNT to 0x0501 (xp)

in mingw, autoconf set PJ_WIN32_WINNT/WINVER to 0x0400,
but SetThreadLocale/GetThreadLocale need WINVER >= 0x0500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants