Commit b6682dd9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

[WINDOWSNT]: Add prototype for getwd.

parent 40da3962
...@@ -187,6 +187,7 @@ extern int quit_char; ...@@ -187,6 +187,7 @@ extern int quit_char;
#define _P_WAIT 0 #define _P_WAIT 0
int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); int _CRTAPI1 _spawnlp (int, const char *, const char *, ...);
int _CRTAPI1 _getpid (void); int _CRTAPI1 _getpid (void);
extern char *getwd (char *);
#endif #endif
#ifdef NONSYSTEM_DIR_LIBRARY #ifdef NONSYSTEM_DIR_LIBRARY
...@@ -261,7 +262,7 @@ SIGMASKTYPE sigprocmask_set; ...@@ -261,7 +262,7 @@ SIGMASKTYPE sigprocmask_set;
#ifndef HAVE_CURRENT_DIR_NAME #ifndef HAVE_CURRENT_DIR_NAME
/* Return the current working directory. Returns NULL on errors. /* Return the current working directory. Returns NULL on errors.
Any other returned value must be freed with free. This is used Any other returned value must be freed with free. This is used
only when get_current_dir_name is not defined on the system. */ only when get_current_dir_name is not defined on the system. */
char* char*
...@@ -293,7 +294,7 @@ get_current_dir_name () ...@@ -293,7 +294,7 @@ get_current_dir_name ()
else else
{ {
size_t buf_size = 1024; size_t buf_size = 1024;
buf = (char *) malloc (buf_size); buf = (char *) malloc (buf_size);
if (!buf) if (!buf)
return NULL; return NULL;
for (;;) for (;;)
......
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