Skip to content

Commit

Permalink
Fix set/get locale for error string never work in mingw
Browse files Browse the repository at this point in the history
in mingw, autoconf set PJ_WIN32_WINNT/WINVER to 0x0400,
but SetThreadLocale/GetThreadLocale need WINVER >= 0x0500
  • Loading branch information
jimying committed Nov 17, 2024
1 parent 4aa26a9 commit 8f4c483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aconfigure
Original file line number Diff line number Diff line change
Expand Up @@ -5770,7 +5770,7 @@ case $target in
*mingw* | *cygw* | *win32* | *w32* )
printf "%s\n" "#define PJ_WIN32 1" >>confdefs.h

printf "%s\n" "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
printf "%s\n" "#define PJ_WIN32_WINNT 0x0501" >>confdefs.h

printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h

Expand Down
2 changes: 1 addition & 1 deletion aconfigure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ case $target in
;;
*mingw* | *cygw* | *win32* | *w32* )
AC_DEFINE(PJ_WIN32,1)
AC_DEFINE(PJ_WIN32_WINNT,0x0400)
AC_DEFINE(PJ_WIN32_WINNT,0x0501)
AC_DEFINE(WIN32_LEAN_AND_MEAN)
case $target in
*_64-w64-mingw* )
Expand Down

0 comments on commit 8f4c483

Please sign in to comment.