diff mbox

[FFmpeg-devel,1/2] configure: detect djgpp libc

Message ID 3aeac525b964740ddd2a6cabf6f73fd0f4d05b39.1542026632.git.pross@xvid.org
State Accepted
Commit 533ba0b6b5a5357fe8c19b3b5bb23fa16b6979f1
Headers show

Commit Message

Peter Ross Nov. 12, 2018, 12:51 p.m. UTC
---
DOS builds are currently broken.

patch 1 adds djgpp libc detection.
patch 2 adds float min/max functions just for djggp libc
(these functions were removed from libm.h in 4436a8f44dedc83767b3d9da9beb85d1fae2ca30)

 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/configure b/configure
index 00b5d9795e..6db4333f25 100755
--- a/configure
+++ b/configure
@@ -5291,7 +5291,6 @@  case $target_os in
         network_extralibs="-lsocket"
         objformat="coff"
         enable dos_paths
-        add_cppflags -U__STRICT_ANSI__
         ;;
     linux)
         enable section_data_rel_ro
@@ -5460,6 +5459,9 @@  EOF
     elif test_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then
         eval ${pfx}libc_type=solaris
         add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
+    elif test_${pfx}cpp_condition sys/version.h "defined __DJGPP__"; then
+        eval ${pfx}libc_type=djgpp
+        add_cppflags -U__STRICT_ANSI__
     fi
     test_${pfx}cc <<EOF
 #include <time.h>