mirror of https://github.com/mpv-player/mpv
main() --> main(void)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25127 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
adf572f304
commit
d601affdb1
|
@ -1498,7 +1498,7 @@ echores $_host_cc
|
||||||
echocheck "cross compilation"
|
echocheck "cross compilation"
|
||||||
if test $_cross_compile = auto ; then
|
if test $_cross_compile = auto ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int main() { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
_cross_compile=yes
|
_cross_compile=yes
|
||||||
cc_check && "$TMPEXE" && _cross_compile=no
|
cc_check && "$TMPEXE" && _cross_compile=no
|
||||||
|
@ -2137,7 +2137,7 @@ EOF
|
||||||
|
|
||||||
echocheck "CPU type"
|
echocheck "CPU type"
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int main() {
|
int main(void) {
|
||||||
unsigned long ver, mask;
|
unsigned long ver, mask;
|
||||||
asm ("implver %0" : "=r" (ver));
|
asm ("implver %0" : "=r" (ver));
|
||||||
asm ("amask %1, %0" : "=r" (mask) : "r" (-1));
|
asm ("amask %1, %0" : "=r" (mask) : "r" (-1));
|
||||||
|
@ -2407,7 +2407,7 @@ echocheck ".align is a power of two"
|
||||||
if test "$_asmalign_pot" = auto ; then
|
if test "$_asmalign_pot" = auto ; then
|
||||||
_asmalign_pot=no
|
_asmalign_pot=no
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
main() { asm (".align 3"); }
|
main(void) { asm (".align 3"); }
|
||||||
EOF
|
EOF
|
||||||
cc_check && _asmalign_pot=yes
|
cc_check && _asmalign_pot=yes
|
||||||
fi
|
fi
|
||||||
|
@ -2431,7 +2431,7 @@ if ppc ; then
|
||||||
|
|
||||||
p=''
|
p=''
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int main() {
|
int main(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
@ -2677,7 +2677,7 @@ echores "$_runtime_cpudetection"
|
||||||
|
|
||||||
echocheck "restrict keyword"
|
echocheck "restrict keyword"
|
||||||
for restrict_keyword in restrict __restrict __restrict__ ; do
|
for restrict_keyword in restrict __restrict __restrict__ ; do
|
||||||
echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC
|
echo "void foo(char * $restrict_keyword p); int main(void){}" > $TMPC
|
||||||
if cc_check; then
|
if cc_check; then
|
||||||
_def_restrict_keyword=$restrict_keyword
|
_def_restrict_keyword=$restrict_keyword
|
||||||
break;
|
break;
|
||||||
|
@ -2703,7 +2703,7 @@ int foo (int a) {
|
||||||
a = __builtin_expect (a, 10);
|
a = __builtin_expect (a, 10);
|
||||||
return a == 10 ? 0 : 1;
|
return a == 10 ? 0 : 1;
|
||||||
}
|
}
|
||||||
int main() { return foo(10) && foo(0); }
|
int main(void) { return foo(10) && foo(0); }
|
||||||
EOF
|
EOF
|
||||||
_builtin_expect=no
|
_builtin_expect=no
|
||||||
cc_check && _builtin_expect=yes
|
cc_check && _builtin_expect=yes
|
||||||
|
@ -5455,7 +5455,7 @@ if test "$_libcdio" = auto && test "$_cdparanoia" = no ; then
|
||||||
#include <cdio/version.h>
|
#include <cdio/version.h>
|
||||||
#include <cdio/cdda.h>
|
#include <cdio/cdda.h>
|
||||||
#include <cdio/paranoia.h>
|
#include <cdio/paranoia.h>
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
void *test = cdda_verbose_set;
|
void *test = cdda_verbose_set;
|
||||||
printf("%s\n", CDIO_VERSION);
|
printf("%s\n", CDIO_VERSION);
|
||||||
|
@ -5533,7 +5533,7 @@ if test "$_freetype" = auto ; then
|
||||||
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9)))
|
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9)))
|
||||||
#error "Need FreeType 2.0.9 or newer"
|
#error "Need FreeType 2.0.9 or newer"
|
||||||
#endif
|
#endif
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
FT_Library library;
|
FT_Library library;
|
||||||
FT_Int major=-1,minor=-1,patch=-1;
|
FT_Int major=-1,minor=-1,patch=-1;
|
||||||
|
@ -5577,7 +5577,7 @@ if test "$_fontconfig" = auto ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fontconfig/fontconfig.h>
|
#include <fontconfig/fontconfig.h>
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
int err = FcInit();
|
int err = FcInit();
|
||||||
if(err == FcFalse){
|
if(err == FcFalse){
|
||||||
|
@ -5622,7 +5622,7 @@ if test "$_ass" = auto ; then
|
||||||
#if ((FREETYPE_MAJOR < 2) || (FREETYPE_MINOR < 1) || ((FREETYPE_MINOR == 1) && (FREETYPE_PATCH < 8)))
|
#if ((FREETYPE_MAJOR < 2) || (FREETYPE_MINOR < 1) || ((FREETYPE_MINOR == 1) && (FREETYPE_PATCH < 8)))
|
||||||
#error "Need FreeType 2.1.8 or newer"
|
#error "Need FreeType 2.1.8 or newer"
|
||||||
#endif
|
#endif
|
||||||
int main() { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
_ass=no
|
_ass=no
|
||||||
cc_check `$_freetypeconfig --cflags` `$_freetypeconfig --libs` && tmp_run && _ass=yes
|
cc_check `$_freetypeconfig --cflags` `$_freetypeconfig --libs` && tmp_run && _ass=yes
|
||||||
|
@ -5646,7 +5646,7 @@ if test "$_fribidi" = auto ; then
|
||||||
/* workaround for fribidi 0.10.4 and below */
|
/* workaround for fribidi 0.10.4 and below */
|
||||||
#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8
|
#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8
|
||||||
#include <fribidi/fribidi.h>
|
#include <fribidi/fribidi.h>
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) {
|
if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) {
|
||||||
printf("Fribidi headers are not consistents with the library!\n");
|
printf("Fribidi headers are not consistents with the library!\n");
|
||||||
|
@ -5675,7 +5675,7 @@ echocheck "ENCA"
|
||||||
if test "$_enca" = auto ; then
|
if test "$_enca" = auto ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <enca.h>
|
#include <enca.h>
|
||||||
int main()
|
int main(void)
|
||||||
{
|
{
|
||||||
const char **langs;
|
const char **langs;
|
||||||
size_t langcnt;
|
size_t langcnt;
|
||||||
|
@ -7064,7 +7064,7 @@ if test "$_big_endian" = auto ; then
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
|
short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
|
||||||
(('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
|
(('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
|
||||||
int main(){
|
int main(void){
|
||||||
return (int)ascii_name;
|
return (int)ascii_name;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
@ -7501,7 +7501,7 @@ CFLAGS="-I. -I.. -I../libavutil $CFLAGS"
|
||||||
CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS"
|
CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS"
|
||||||
|
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int main() { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
if test "$cc_vendor" = "gnu" ; then
|
if test "$cc_vendor" = "gnu" ; then
|
||||||
cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue