summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-04-28 15:58:42 +0000
committerUoti Urpala <uau@mplayer2.org>2011-06-29 06:32:56 +0300
commit74a85b860062fb339389a6dd262dcb45bad7785b (patch)
tree1333854a8f374b5c636f524dacd92ca8ad5e302d /configure
parent49b31c2b43b9853bc3a347be7d914e27839d1f61 (diff)
downloadmpv-74a85b860062fb339389a6dd262dcb45bad7785b.tar.bz2
mpv-74a85b860062fb339389a6dd262dcb45bad7785b.tar.xz
configure: fix swab() check for Windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33339 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33349 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 20ebcd384b..f1f2876f7d 100755
--- a/configure
+++ b/configure
@@ -3437,7 +3437,8 @@ echores "$_vsscanf"
echocheck "swab()"
_swab=no
-define_statement_check "_XOPEN_SOURCE 600" "unistd.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes
+define_statement_check "_XOPEN_SOURCE 600" "unistd.h" 'int a, b; swab(&a, &b, 0)' ||
+ statement_check "string.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes
if test "$_swab" = yes ; then
def_swab='#define HAVE_SWAB 1'
need_swab=no