Index: build/win32/libx264.vcproj =================================================================== --- build/win32/libx264.vcproj (revision 656) +++ build/win32/libx264.vcproj (working copy) @@ -1056,34 +1056,6 @@ - - - - - - - - - - - #include +#ifndef _MSC_VER #include +#endif #include "common.h" Index: encoder/analyse.c =================================================================== --- encoder/analyse.c (revision 656) +++ encoder/analyse.c (working copy) @@ -26,7 +26,9 @@ #include #include #include +#ifndef _MSC_VER #include +#endif #include "common/common.h" #include "macroblock.h" Index: extras/getopt.c =================================================================== --- extras/getopt.c (revision 656) +++ extras/getopt.c (working copy) @@ -199,11 +199,15 @@ # define my_index strchr #else -# if HAVE_STRING_H -# include -# else -# include -# endif +# if HAVE_STRING_H +# include +# else +# ifdef _MSC_VER +# include +# else +# include +# endif +# endif /* Avoid depending on library functions or files whose names are inconsistent. */ @@ -980,6 +984,16 @@ 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