Fix v8 mingw build

This commit is contained in:
Bert Belder 2011-07-05 00:02:46 +02:00
parent 3b16a89b3a
commit c953ecfb9e

View File

@ -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,