From 26bed72be4941353b4c79eddf500ce39aaf75490 Mon Sep 17 00:00:00 2001 From: Alex Izvorski Date: Tue, 5 Jun 2007 18:32:13 +0000 Subject: [PATCH] updated MS VC8/VC7 build, patch by Gabriel Bouvigne git-svn-id: svn://svn.videolan.org/x264/trunk@657 df754926-b1dd-0310-bc7b-ec298dee348c --- build/win32/libx264.vcproj | 28 ---------------------------- common/frame.c | 2 ++ encoder/analyse.c | 2 ++ extras/getopt.c | 16 +++++++++++++++- 4 files changed, 19 insertions(+), 29 deletions(-) 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 -- 2.47.3