mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit 'c0bd865ad60da31282c5d8e1000c98366249c31e'
* commit 'c0bd865ad60da31282c5d8e1000c98366249c31e': configure: Add -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 for mingw as well Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
0084eed5bf
2
configure
vendored
2
configure
vendored
@ -5458,6 +5458,7 @@ probe_libc(){
|
|||||||
add_${pfx}cppflags -D__printf__=__gnu_printf__
|
add_${pfx}cppflags -D__printf__=__gnu_printf__
|
||||||
test_${pfx}cpp_condition windows.h "!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600" &&
|
test_${pfx}cpp_condition windows.h "!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600" &&
|
||||||
add_${pfx}cppflags -D_WIN32_WINNT=0x0600
|
add_${pfx}cppflags -D_WIN32_WINNT=0x0600
|
||||||
|
add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
|
||||||
elif test_${pfx}cpp_condition _mingw.h "defined __MINGW_VERSION" ||
|
elif test_${pfx}cpp_condition _mingw.h "defined __MINGW_VERSION" ||
|
||||||
test_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
|
test_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
|
||||||
eval ${pfx}libc_type=mingw32
|
eval ${pfx}libc_type=mingw32
|
||||||
@ -5471,6 +5472,7 @@ probe_libc(){
|
|||||||
add_${pfx}cppflags -D_WIN32_WINNT=0x0600
|
add_${pfx}cppflags -D_WIN32_WINNT=0x0600
|
||||||
eval test \$${pfx_no_}cc_type = "gcc" &&
|
eval test \$${pfx_no_}cc_type = "gcc" &&
|
||||||
add_${pfx}cppflags -D__printf__=__gnu_printf__
|
add_${pfx}cppflags -D__printf__=__gnu_printf__
|
||||||
|
add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
|
||||||
elif test_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
|
elif test_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
|
||||||
eval ${pfx}libc_type=msvcrt
|
eval ${pfx}libc_type=msvcrt
|
||||||
if test_${pfx}cpp_condition crtversion.h "_VC_CRT_MAJOR_VERSION < 14"; then
|
if test_${pfx}cpp_condition crtversion.h "_VC_CRT_MAJOR_VERSION < 14"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user