Include the msvcrt headers, remove duplicate definitions.
Fixed the signature of a few functions.
Don't use wcs* functions, use *W (from unicode.h) instead.
diff --git a/dlls/msvcrt/misc.c b/dlls/msvcrt/misc.c
index 0535958..803902d 100644
--- a/dlls/msvcrt/misc.c
+++ b/dlls/msvcrt/misc.c
@@ -6,6 +6,10 @@
#include "msvcrt.h"
+#include <stdlib.h>
+#include "msvcrt/stdlib.h"
+
+
DEFAULT_DEBUG_CHANNEL(msvcrt);
typedef int (*MSVCRT_comp_func)(const void*, const void*);
@@ -19,8 +23,6 @@
Beep(freq, duration);
}
-extern int rand(void);
-
/*********************************************************************
* rand (MSVCRT.@)
*/