]> git.sesse.net Git - x264/blobdiff - extras/getopt.c
Add getopt_long to the included getopt.c
[x264] / extras / getopt.c
index 4c0cb1014c5711ce03e6c8f177bcd0341a81e9a0..434efe7e71e57b0123a1e03ddb73908857cfe2d5 100644 (file)
@@ -980,6 +980,16 @@ getopt (argc, argv, optstring)
                           0);
 }
 
+int getopt_long (argc, argv, optstring, long_options, opt_index)
+     int argc;
+     char *const *argv;
+     const char *optstring;
+     const struct option *long_options;
+     int *opt_index;
+{
+  return _getopt_internal (argc, argv, optstring, long_options, opt_index, 0);
+}
+
 #endif /* Not ELIDE_CODE.  */
 \f
 #ifdef TEST