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
cde32d4d
Commit
cde32d4d
authored
Jul 05, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variadic macros is only available from Visual Studio 2005+
parent
ab864e9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/trace.h
+9
-1
src/win32/msvc-compat.h
+1
-1
No files found.
src/trace.h
View file @
cde32d4d
...
...
@@ -46,8 +46,16 @@ GIT_INLINE(void) git_trace__write_fmt(
#else
GIT_INLINE
(
void
)
git_trace__null
(
git_trace_level_t
level
,
const
char
*
fmt
,
...)
{
GIT_UNUSED
(
level
);
GIT_UNUSED
(
fmt
);
}
#define git_trace_level() ((void)0)
#define git_trace
(lvl, ...) ((void)0)
#define git_trace
git_trace__null
#endif
...
...
src/win32/msvc-compat.h
View file @
cde32d4d
...
...
@@ -38,7 +38,7 @@
typedef
SSIZE_T
ssize_t
;
/* define snprintf using variadic macro support if available */
#if _MSC_VER >= 1
4
00
#if _MSC_VER >= 1
5
00
# define snprintf(BUF, SZ, FMT, ...) _snprintf_s(BUF, SZ, _TRUNCATE, FMT, __VA_ARGS__)
#else
# define snprintf _snprintf
...
...
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