-#include <msvcrti.h>
-
+#include <windows.h>
+#include <msvcrt/stdlib.h>
+#include <msvcrt/string.h>
extern char *_acmdln;
extern char *_pgmptr;
if (!(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
strcpy(&buffer[pos], fd.cFileName);
- if (add(_strdup(buffer)) < 0)
+ if (add(strdup(buffer)) < 0)
{
FindClose(hFile);
return -1;
*argv = __argv;
*env = _environ;
- _pgmptr = _strdup((char *)argv[0]);
+ _pgmptr = strdup((char *)argv[0]);
return 0;
}