]> git.sesse.net Git - vlc/commitdiff
Remove Apple getopt_long bug-to-bug
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 28 Feb 2010 14:05:14 +0000 (16:05 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 28 Feb 2010 15:01:47 +0000 (17:01 +0200)
src/config/cmdline.c

index cfca4f2475fcdc27196e5639b934bc7a41a8ae8c..c721c456e884b17701ea57b2e6897f5cb60c2f15 100644 (file)
@@ -142,13 +142,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
             if( p_longopts[i_index].name == NULL ) continue;
             p_longopts[i_index].has_arg =
                 (p_item->i_type == CONFIG_ITEM_BOOL) ? no_argument : 
-#ifndef __APPLE__
                                                        required_argument;
-#else
-/* It seems that required_argument is broken on Darwin.
- * Radar ticket #6113829 */
-                                                       optional_argument;
-#endif
             p_longopts[i_index].flag = &flag;
             p_longopts[i_index].val = 0;
             i_index++;
@@ -257,14 +251,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
 
                     psz_name = p_conf->psz_name;
                 }
-#ifdef __APPLE__
-                if( p_conf->i_type != CONFIG_ITEM_BOOL && !optarg )
-                {
-                    fprintf( stderr, "Warning: missing argument for option --%s\n", p_conf->psz_name );
-                    fprintf( stderr, "Try specifying options as '--optionname=value' instead of '--optionname value'\n" );
-                    continue;
-                }
-#endif
+
                 switch( p_conf->i_type )
                 {
                     case CONFIG_ITEM_STRING: