Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
784693bb
Commit
784693bb
authored
May 21, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Remove the S_ISXXX() macros as they are not present in the Visual C++ headers.
parent
f793221f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
file.c
dlls/msvcrt/tests/file.c
+1
-1
stat.h
include/msvcrt/sys/stat.h
+0
-5
No files found.
dlls/msvcrt/tests/file.c
View file @
784693bb
...
...
@@ -809,7 +809,7 @@ static void test_stat(void)
{
if
(
fstat
(
fd
,
&
buf
)
==
0
)
{
if
(
S_ISREG
(
buf
.
st_mode
)
)
if
(
(
buf
.
st_mode
&
_S_IFMT
)
==
_S_IFREG
)
{
ok
(
buf
.
st_dev
==
0
,
"st_dev is %d, expected 0
\n
"
,
buf
.
st_dev
);
ok
(
buf
.
st_dev
==
buf
.
st_rdev
,
"st_dev (%d) and st_rdev (%d) differ
\n
"
,
...
...
include/msvcrt/sys/stat.h
View file @
784693bb
...
...
@@ -164,11 +164,6 @@ int _wstat64(const wchar_t*,struct _stat64*);
#define S_IWRITE _S_IWRITE
#define S_IEXEC _S_IEXEC
#define S_ISCHR(m) (((m)&_S_IFMT) == _S_IFCHR)
#define S_ISDIR(m) (((m)&_S_IFMT) == _S_IFDIR)
#define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
#define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
static
inline
int
fstat
(
int
fd
,
struct
stat
*
ptr
)
{
return
_fstat
(
fd
,
(
struct
_stat
*
)
ptr
);
}
static
inline
int
stat
(
const
char
*
path
,
struct
stat
*
ptr
)
{
return
_stat
(
path
,
(
struct
_stat
*
)
ptr
);
}
#ifndef _UMASK_DEFINED
...
...
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