Skip to content

Commit

Permalink
Move ENABLE_TCP setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
katoemba committed Dec 27, 2019
1 parent 7a1ed3a commit 0a7d8a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Sources/libmpdclient/connection.c
Expand Up @@ -48,6 +48,10 @@
#include <stdlib.h>
#include <string.h>

#ifndef ENABLE_TCP
#define ENABLE_TCP 1
#endif

#define MPD_WELCOME_MESSAGE "OK MPD "

static bool
Expand Down
4 changes: 4 additions & 0 deletions Sources/libmpdclient/resolver.c
Expand Up @@ -34,6 +34,10 @@
#include <stdlib.h>
#include <string.h>

#ifndef ENABLE_TCP
#define ENABLE_TCP 1
#endif

#ifdef _WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
Expand Down
3 changes: 0 additions & 3 deletions Sources/libmpdclient/settings.c
Expand Up @@ -39,9 +39,6 @@
#ifndef DEFAULT_PORT
#define DEFAULT_PORT 6600
#endif
#ifndef ENABLE_TCP
#define ENABLE_TCP 1
#endif

struct mpd_settings {
char *host;
Expand Down

0 comments on commit 0a7d8a0

Please sign in to comment.