]> git.sesse.net Git - x264/blobdiff - extras/getopt.c
updated MS VC8/VC7 build, patch by Gabriel Bouvigne
[x264] / extras / getopt.c
index 9fb69b1afc3f5893c018c57ba4c01d05cc417272..37c5d21a58c6881c6f20af31db8f3cc2b99578ee 100644 (file)
@@ -202,7 +202,11 @@ static char *posixly_correct;
 # if HAVE_STRING_H
 #  include <string.h>
 # else
-#  include <strings.h>
+#  ifdef _MSC_VER
+#   include <string.h>
+#  else
+#   include <strings.h>
+#  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.  */
 \f
 #ifdef TEST