diff options
| author | stijn | 2014-05-03 10:26:04 +0200 |
|---|---|---|
| committer | stijn | 2014-05-03 17:38:08 +0200 |
| commit | 4cd21deebca0e75b77d62d8d748aa66453532d9b (patch) | |
| tree | 0fdf136db5371bb6c69ec27c1ecddcc5c270f50c /windows/mpconfigport.h | |
| parent | bff1ff28eec5611a2e963601b98044135694df57 (diff) | |
mingw: Add implementation of realpath()
The mingw port used _fullpath() until now, but the behaviour is not exactly
the same as realpath()'s on unix; major difference being that it doesn't
return an error for non-existing files, which would bypass main's error
checking and bail out without any error message.
Also realpath() will return forward slashes only since main() relies on that.
Diffstat (limited to 'windows/mpconfigport.h')
| -rw-r--r-- | windows/mpconfigport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h index 80d8ac89b..d27c59cb3 100644 --- a/windows/mpconfigport.h +++ b/windows/mpconfigport.h @@ -36,3 +36,5 @@ typedef const void *machine_const_ptr_t; // must be of pointer size extern const struct _mp_obj_fun_native_t mp_builtin_open_obj; #define MICROPY_EXTRA_BUILTINS \ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, + +#include "realpath.h" |
