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
780bea6e
Commit
780bea6e
authored
Sep 29, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mingw: Fix printf identifiers
parent
c103d7b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
src/cc-compat.h
+7
-0
src/config.c
+1
-1
No files found.
src/cc-compat.h
View file @
780bea6e
...
...
@@ -65,6 +65,13 @@
# define PRIuZ "zu"
#endif
/* Define the printf format for 64 bit types */
#if defined(__MINGW32__)
# define PRIdMAX "I64d"
#else
# define PRIdMAX "lld"
#endif
/* Micosoft Visual C/C++ */
#if defined(_MSC_VER)
/* disable "deprecated function" warnings */
...
...
src/config.c
View file @
780bea6e
...
...
@@ -167,7 +167,7 @@ int git_config_delete(git_config *cfg, const char *name)
int
git_config_set_long
(
git_config
*
cfg
,
const
char
*
name
,
long
long
value
)
{
char
str_value
[
32
];
/* All numbers should fit in here */
p_snprintf
(
str_value
,
sizeof
(
str_value
),
"%
lld"
,
value
);
p_snprintf
(
str_value
,
sizeof
(
str_value
),
"%
"
PRIdMAX
,
value
);
return
git_config_set_string
(
cfg
,
name
,
str_value
);
}
...
...
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