Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
824f4acd
Commit
824f4acd
authored
Nov 23, 2010
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix redeclaration warnings in MSVC
Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent
f8b422b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
src/msvc-compat.h
+4
-0
src/odb.c
+1
-1
No files found.
src/msvc-compat.h
View file @
824f4acd
...
@@ -20,6 +20,9 @@ typedef __int64 off64_t;
...
@@ -20,6 +20,9 @@ typedef __int64 off64_t;
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
#if (_MSC_VER >= 1600)
# include <stdint.h>
#else
/* add some missing <stdint.h> typedef's */
/* add some missing <stdint.h> typedef's */
typedef
signed
char
int8_t
;
typedef
signed
char
int8_t
;
typedef
unsigned
char
uint8_t
;
typedef
unsigned
char
uint8_t
;
...
@@ -35,6 +38,7 @@ typedef unsigned long long uint64_t;
...
@@ -35,6 +38,7 @@ typedef unsigned long long uint64_t;
typedef
long
long
intmax_t
;
typedef
long
long
intmax_t
;
typedef
unsigned
long
long
uintmax_t
;
typedef
unsigned
long
long
uintmax_t
;
#endif
#endif
#endif
...
...
src/odb.c
View file @
824f4acd
...
@@ -1435,7 +1435,7 @@ static int unpack_object(git_rawobj *out, git_pack *p, index_entry *e)
...
@@ -1435,7 +1435,7 @@ static int unpack_object(git_rawobj *out, git_pack *p, index_entry *e)
deflated_size
=
(
size_t
)
e
->
size
;
deflated_size
=
(
size_t
)
e
->
size
;
if
(
deflated_size
==
0
)
if
(
deflated_size
==
0
)
deflated_size
=
p
->
pack_size
-
e
->
offset
;
deflated_size
=
(
size_t
)(
p
->
pack_size
-
e
->
offset
)
;
byte
=
*
buffer
++
&
0xFF
;
byte
=
*
buffer
++
&
0xFF
;
deflated_size
--
;
deflated_size
--
;
...
...
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