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
72090514
Commit
72090514
authored
Jul 05, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Secure CRT is only available from Visual Studio 2005+
parent
491ad0de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/win32/posix.h
+1
-1
src/win32/posix_w32.c
+2
-2
No files found.
src/win32/posix.h
View file @
72090514
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
# define EAFNOSUPPORT (INT_MAX-1)
# define EAFNOSUPPORT (INT_MAX-1)
#endif
#endif
#if
def _MSC_VER
#if
defined(_MSC_VER) && _MSC_VER >= 1500
# define p_ftruncate(fd, sz) _chsize_s(fd, sz)
# define p_ftruncate(fd, sz) _chsize_s(fd, sz)
#else
/* MinGW */
#else
/* MinGW */
# define p_ftruncate(fd, sz) _chsize(fd, sz)
# define p_ftruncate(fd, sz) _chsize(fd, sz)
...
...
src/win32/posix_w32.c
View file @
72090514
...
@@ -543,7 +543,7 @@ char *p_realpath(const char *orig_path, char *buffer)
...
@@ -543,7 +543,7 @@ char *p_realpath(const char *orig_path, char *buffer)
int
p_vsnprintf
(
char
*
buffer
,
size_t
count
,
const
char
*
format
,
va_list
argptr
)
int
p_vsnprintf
(
char
*
buffer
,
size_t
count
,
const
char
*
format
,
va_list
argptr
)
{
{
#if
def _MSC_VER
#if
defined(_MSC_VER) && _MSC_VER >= 1500
int
len
;
int
len
;
if
(
count
==
0
||
if
(
count
==
0
||
...
@@ -570,7 +570,7 @@ int p_snprintf(char *buffer, size_t count, const char *format, ...)
...
@@ -570,7 +570,7 @@ int p_snprintf(char *buffer, size_t count, const char *format, ...)
int
p_mkstemp
(
char
*
tmp_path
)
int
p_mkstemp
(
char
*
tmp_path
)
{
{
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& _MSC_VER >= 1500
if
(
_mktemp_s
(
tmp_path
,
strlen
(
tmp_path
)
+
1
)
!=
0
)
if
(
_mktemp_s
(
tmp_path
,
strlen
(
tmp_path
)
+
1
)
!=
0
)
return
-
1
;
return
-
1
;
#else
#else
...
...
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