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
0107ef2a
Commit
0107ef2a
authored
Oct 22, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main: put #ifdef inside winsock_init()
This way, the function call in the main() function does not need another pair of #ifdef/#endif.
parent
a153f213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
main.c
src/main.c
+2
-5
No files found.
src/main.c
View file @
0107ef2a
...
...
@@ -185,9 +185,9 @@ glue_state_file_init(void)
/**
* Windows-only initialization of the Winsock2 library.
*/
#ifdef WIN32
static
void
winsock_init
(
void
)
{
#ifdef WIN32
WSADATA
sockinfo
;
int
retval
;
...
...
@@ -203,9 +203,8 @@ static void winsock_init(void)
g_error
(
"We use Winsock2 but your version is either too new or "
"old; please install Winsock 2.x
\n
"
);
}
}
#endif
}
/**
* Initialize the decoder and player core, including the music pipe.
...
...
@@ -288,9 +287,7 @@ int main(int argc, char *argv[])
/* enable GLib's thread safety code */
g_thread_init
(
NULL
);
#ifdef WIN32
winsock_init
();
#endif
idle_init
();
dirvec_init
();
songvec_init
();
...
...
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