Commit 645540be authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent c2b07321
......@@ -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);
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment