Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a1f727bc
Commit
a1f727bc
authored
Mar 29, 2008
by
Uwe Schulzweida
Browse files
file.c: _WIN32 support
parent
0f557275
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file.c
View file @
a1f727bc
...
...
@@ -1194,16 +1194,21 @@ int fileClose(int fileID)
fprintf
(
stderr
,
" file mode : %c
\n
"
,
fileptr
->
mode
);
#if ! defined (_WIN32)
if
(
sizeof
(
off_t
)
>
sizeof
(
long
)
)
{
#if defined (_WIN32)
fprintf
(
stderr
,
" file size : %l64d
\n
"
,
(
long
long
)
fileptr
->
size
);
if
(
fileptr
->
type
==
FILE_TYPE_OPEN
)
fprintf
(
stderr
,
" file position : %l64d
\n
"
,
(
long
long
)
fileptr
->
position
);
fprintf
(
stderr
,
" bytes transfered : %l64d
\n
"
,
(
long
long
)
fileptr
->
byteTrans
);
#else
fprintf
(
stderr
,
" file size : %lld
\n
"
,
(
long
long
)
fileptr
->
size
);
if
(
fileptr
->
type
==
FILE_TYPE_OPEN
)
fprintf
(
stderr
,
" file position : %lld
\n
"
,
(
long
long
)
fileptr
->
position
);
fprintf
(
stderr
,
" bytes transfered : %lld
\n
"
,
(
long
long
)
fileptr
->
byteTrans
);
#endif
}
else
#endif
{
fprintf
(
stderr
,
" file size : %ld
\n
"
,
(
long
)
fileptr
->
size
);
if
(
fileptr
->
type
==
FILE_TYPE_OPEN
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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