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
e4e80ff0
Commit
e4e80ff0
authored
Oct 15, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: use WIN32 instead of G_OS_WIN32
parent
9508ea98
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
ClientWrite.cxx
src/ClientWrite.cxx
+1
-1
CommandLine.cxx
src/CommandLine.cxx
+2
-2
TimePrint.cxx
src/TimePrint.cxx
+2
-2
UpdateWalk.cxx
src/UpdateWalk.cxx
+2
-2
Path.cxx
src/fs/Path.cxx
+3
-3
Resolver.cxx
src/system/Resolver.cxx
+3
-3
SocketUtil.cxx
src/system/SocketUtil.cxx
+3
-3
No files found.
src/ClientWrite.cxx
View file @
e4e80ff0
...
...
@@ -47,7 +47,7 @@ client_puts(Client *client, const char *s)
void
client_vprintf
(
Client
*
client
,
const
char
*
fmt
,
va_list
args
)
{
#ifndef
G_OS_
WIN32
#ifndef WIN32
va_list
tmp
;
int
length
;
...
...
src/CommandLine.cxx
View file @
e4e80ff0
...
...
@@ -54,7 +54,7 @@
#ifdef WIN32
#define CONFIG_FILE_LOCATION "\\mpd\\mpd.conf"
#else
/* G_OS_WIN32 */
#else
#define USER_CONFIG_FILE_LOCATION1 ".mpdconf"
#define USER_CONFIG_FILE_LOCATION2 ".mpd/mpd.conf"
#define USER_CONFIG_FILE_LOCATION_XDG "mpd/mpd.conf"
...
...
@@ -219,7 +219,7 @@ parse_cmdline(int argc, char **argv, struct options *options,
if
(
!
path
.
IsNull
()
&&
FileExists
(
path
))
return
ReadConfigFile
(
path
,
error
);
}
#else
/* G_OS_WIN32 */
#else
Path
path
=
PathBuildChecked
(
Path
::
FromUTF8
(
g_get_user_config_dir
()),
USER_CONFIG_FILE_LOCATION_XDG
);
if
(
!
path
.
IsNull
()
&&
FileExists
(
path
))
...
...
src/TimePrint.cxx
View file @
e4e80ff0
...
...
@@ -26,7 +26,7 @@
void
time_print
(
Client
*
client
,
const
char
*
name
,
time_t
t
)
{
#ifdef
G_OS_
WIN32
#ifdef WIN32
const
struct
tm
*
tm2
=
gmtime
(
&
t
);
#else
struct
tm
tm
;
...
...
@@ -37,7 +37,7 @@ time_print(Client *client, const char *name, time_t t)
char
buffer
[
32
];
strftime
(
buffer
,
sizeof
(
buffer
),
#ifdef
G_OS_
WIN32
#ifdef WIN32
"%Y-%m-%dT%H:%M:%SZ"
,
#else
"%FT%TZ"
,
...
...
src/UpdateWalk.cxx
View file @
e4e80ff0
...
...
@@ -162,7 +162,7 @@ purge_deleted_from_directory(Directory *directory)
}
}
#ifndef
G_OS_
WIN32
#ifndef WIN32
static
int
update_directory_stat
(
Directory
*
directory
)
{
...
...
@@ -178,7 +178,7 @@ update_directory_stat(Directory *directory)
static
int
find_inode_ancestor
(
Directory
*
parent
,
ino_t
inode
,
dev_t
device
)
{
#ifndef
G_OS_
WIN32
#ifndef WIN32
while
(
parent
)
{
if
(
!
parent
->
have_stat
&&
update_directory_stat
(
parent
)
<
0
)
return
-
1
;
...
...
src/fs/Path.cxx
View file @
e4e80ff0
...
...
@@ -31,7 +31,7 @@
#include <assert.h>
#include <string.h>
#ifdef
G_OS_
WIN32
#ifdef WIN32
#include <windows.h> // for GetACP()
#include <stdio.h> // for sprintf()
#endif
...
...
@@ -158,13 +158,13 @@ void Path::GlobalInit()
charset
=
config_get_string
(
CONF_FS_CHARSET
,
NULL
);
if
(
charset
==
NULL
)
{
#ifndef
G_OS_
WIN32
#ifndef WIN32
const
gchar
**
encodings
;
g_get_filename_charsets
(
&
encodings
);
if
(
encodings
[
0
]
!=
NULL
&&
*
encodings
[
0
]
!=
'\0'
)
charset
=
encodings
[
0
];
#else
/* G_OS_WIN32 */
#else
/* Glib claims that file system encoding is always utf-8
* on native Win32 (i.e. not Cygwin).
* However this is true only if <gstdio.h> helpers are used.
...
...
src/system/Resolver.cxx
View file @
e4e80ff0
...
...
@@ -24,13 +24,13 @@
#include <glib.h>
#ifndef
G_OS_
WIN32
#ifndef WIN32
#include <sys/socket.h>
#include <netdb.h>
#else
/* G_OS_WIN32 */
#else
#include <ws2tcpip.h>
#include <winsock.h>
#endif
/* G_OS_WIN32 */
#endif
#include <string.h>
#include <stdio.h>
...
...
src/system/SocketUtil.cxx
View file @
e4e80ff0
...
...
@@ -26,12 +26,12 @@
#include <unistd.h>
#ifndef
G_OS_
WIN32
#ifndef WIN32
#include <sys/socket.h>
#else
/* G_OS_WIN32 */
#else
#include <ws2tcpip.h>
#include <winsock.h>
#endif
/* G_OS_WIN32 */
#endif
#ifdef HAVE_IPV6
#include <string.h>
...
...
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