1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

configure: Fix compilation on Windows: MinGW unistd.h does not define NULL

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32295 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-09-18 08:05:10 +00:00 committed by Uoti Urpala
parent 3a5a47ccc2
commit 3e40d5f9aa

6
configure vendored
View File

@ -3603,7 +3603,11 @@ echocheck "swab()"
cat > $TMPC << EOF
#define _XOPEN_SOURCE 600
#include <unistd.h>
int main(void) { swab(NULL, NULL, 0); return 0; }
int main(void) {
int a = 0, b = 0;
swab(&a, &b, 0);
return 0;
}
EOF
_swab=no
cc_check && _swab=yes