Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d6dbf64e
Commit
d6dbf64e
authored
Apr 18, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CommandLine: fix another build failure with -Ddatabase=false
Split several printf() calls to make it easier to deal with all those #ifdefs.
parent
8d18b4c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CommandLine.cxx
src/CommandLine.cxx
+8
-8
No files found.
src/CommandLine.cxx
View file @
d6dbf64e
...
...
@@ -108,17 +108,17 @@ static constexpr Domain cmdline_domain("cmdline");
gcc_noreturn
static
void
version
(
void
)
{
printf
(
"Music Player Daemon "
VERSION
" (%s)
\n
"
printf
(
"Music Player Daemon "
VERSION
" (%s)"
"
\n
"
"Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
\n
"
"Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
\n
"
"This is free software; see the source for copying conditions. There is NO
\n
"
"warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\n
"
"warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\n
"
,
GIT_VERSION
);
#ifdef ENABLE_DATABASE
"
\n
"
"Database plugins:
\n
"
,
GIT_VERSION
);
printf
(
"
\n
"
"Database plugins:
\n
"
);
for
(
auto
i
=
database_plugins
;
*
i
!=
nullptr
;
++
i
)
printf
(
" %s"
,
(
*
i
)
->
name
);
...
...
@@ -129,18 +129,18 @@ static void version(void)
for
(
auto
i
=
storage_plugins
;
*
i
!=
nullptr
;
++
i
)
printf
(
" %s"
,
(
*
i
)
->
name
);
printf
(
"
\n
"
printf
(
"
\n
"
);
#endif
#ifdef ENABLE_NEIGHBOR_PLUGINS
"
\n
"
printf
(
"
\n
"
"Neighbor plugins:
\n
"
);
for
(
auto
i
=
neighbor_plugins
;
*
i
!=
nullptr
;
++
i
)
printf
(
" %s"
,
(
*
i
)
->
name
);
printf
(
"
\n
"
#endif
printf
(
"
\n
"
"
\n
"
"Decoders plugins:
\n
"
);
...
...
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