msvcp90: Add wrappers for functions that don't exist in old msvcrt versions.

This commit is contained in:
Alexandre Julliard 2014-01-13 12:52:17 +01:00
parent c2b0732108
commit 645540beed
2 changed files with 10 additions and 4 deletions

View File

@ -20,7 +20,6 @@
#include <stdarg.h>
#include "msvcp90.h"
#include "locale.h"
#include "errno.h"
#include "limits.h"
@ -29,14 +28,14 @@
#include "wchar.h"
#include "wctype.h"
#include "time.h"
#include "wine/list.h"
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "msvcp90.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
char* __cdecl _Getdays(void);

View File

@ -515,3 +515,10 @@ typedef struct {
double real;
double imag;
} complex_double;
#if _MSVCP_VER < 80
#define memcpy_s( dst, size, src, count ) (memcpy( (dst), (src), (count) ), 0)
#define memmove_s( dst, size, src, count ) (memmove( (dst), (src), (count) ), 0)
#define mbstowcs_s( ret, wcs, size, mbs, count ) (mbstowcs( (wcs), (mbs), (count) ))
#define hypotf( x, y ) ((float)hypot( (double)(x), (double)(y) ))
#endif