Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
2b1c487c
Commit
2b1c487c
authored
Feb 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Apple getopt_long bug-to-bug
parent
6edb2da8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
src/config/cmdline.c
src/config/cmdline.c
+1
-14
No files found.
src/config/cmdline.c
View file @
2b1c487c
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment