From: Alex Izvorski Date: Tue, 5 Jun 2007 18:32:13 +0000 (+0000) Subject: updated MS VC8/VC7 build, patch by Gabriel Bouvigne X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=26bed72be4941353b4c79eddf500ce39aaf75490;p=x264.git updated MS VC8/VC7 build, patch by Gabriel Bouvigne git-svn-id: svn://svn.videolan.org/x264/trunk@657 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/build/win32/libx264.vcproj b/build/win32/libx264.vcproj index dd57e52c..404ea6e4 100644 --- a/build/win32/libx264.vcproj +++ b/build/win32/libx264.vcproj @@ -1055,34 +1055,6 @@ Outputs="$(IntDir)\$(InputName).obj"/> - - - - - - - - - - - diff --git a/common/frame.c b/common/frame.c index e5a1b911..a852c911 100644 --- a/common/frame.c +++ b/common/frame.c @@ -23,7 +23,9 @@ #include #include +#ifndef _MSC_VER #include +#endif #include "common.h" diff --git a/encoder/analyse.c b/encoder/analyse.c index e2ddf30f..6dfca9bf 100644 --- a/encoder/analyse.c +++ b/encoder/analyse.c @@ -26,7 +26,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif #include "common/common.h" #include "macroblock.h" diff --git a/extras/getopt.c b/extras/getopt.c index 9fb69b1a..37c5d21a 100644 --- a/extras/getopt.c +++ b/extras/getopt.c @@ -202,7 +202,11 @@ static char *posixly_correct; # if HAVE_STRING_H # include # else -# include +# ifdef _MSC_VER +# include +# else +# include +# endif # endif /* Avoid depending on library functions or files @@ -980,6 +984,16 @@ getopt (argc, argv, optstring) 0); } +#ifdef _MSC_VER + +int +getopt_long (argc, argv, optstring, long_options, opt_index) +{ + return _getopt_internal (argc, argv, optstring, long_options, opt_index, 0); +} + +#endif + #endif /* Not ELIDE_CODE. */ #ifdef TEST