Commit 3bd1eacd authored by Diego Biurrun's avatar Diego Biurrun Committed by Mans Rullgard

configure: Refactor CPPFLAGS settings for glibc/uclibc

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 5873b623
...@@ -2855,7 +2855,6 @@ case $target_os in ...@@ -2855,7 +2855,6 @@ case $target_os in
add_cppflags -U__STRICT_ANSI__ add_cppflags -U__STRICT_ANSI__
;; ;;
linux) linux)
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
enable dv1394 enable dv1394
;; ;;
irix*) irix*)
...@@ -2886,10 +2885,9 @@ case $target_os in ...@@ -2886,10 +2885,9 @@ case $target_os in
enable dos_paths enable dos_paths
;; ;;
gnu/kfreebsd) gnu/kfreebsd)
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE add_cppflags -D_BSD_SOURCE
;; ;;
gnu) gnu)
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
;; ;;
qnx) qnx)
add_cppflags -D_QNX_SOURCE add_cppflags -D_QNX_SOURCE
...@@ -2937,8 +2935,10 @@ esac ...@@ -2937,8 +2935,10 @@ esac
if check_cpp_condition features.h "defined __UCLIBC__"; then if check_cpp_condition features.h "defined __UCLIBC__"; then
libc_type=uclibc libc_type=uclibc
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_cpp_condition features.h "defined __GLIBC__"; then elif check_cpp_condition features.h "defined __GLIBC__"; then
libc_type=glibc libc_type=glibc
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_header _mingw.h; then elif check_header _mingw.h; then
libc_type=mingw libc_type=mingw
check_cpp_condition _mingw.h \ check_cpp_condition _mingw.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment