Fix v8 mingw build
This commit is contained in:
parent
3b16a89b3a
commit
c953ecfb9e
10
deps/v8/src/platform-win32.cc
vendored
10
deps/v8/src/platform-win32.cc
vendored
@ -123,6 +123,15 @@ int strncasecmp(const char* s1, const char* s2, int n) {
|
||||
// the Microsoft Visual Studio C++ CRT.
|
||||
#ifdef __MINGW32__
|
||||
|
||||
#ifndef _TRUNCATE
|
||||
# define _TRUNCATE 0
|
||||
#endif
|
||||
|
||||
#ifndef STRUNCATE
|
||||
# define STRUNCATE 80
|
||||
#endif
|
||||
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
@ -156,7 +165,6 @@ int _vsnprintf_s(char* buffer, size_t sizeOfBuffer, size_t count,
|
||||
const char* format, va_list argptr) {
|
||||
return _vsnprintf(buffer, sizeOfBuffer, format, argptr);
|
||||
}
|
||||
#define _TRUNCATE 0
|
||||
|
||||
|
||||
int strncpy_s(char* strDest, size_t numberOfElements,
|
||||
|
Loading…
x
Reference in New Issue
Block a user