aboutsummaryrefslogtreecommitdiff
path: root/windows/mpconfigport.h
diff options
context:
space:
mode:
authorstijn2014-05-03 10:26:04 +0200
committerstijn2014-05-03 17:38:08 +0200
commit4cd21deebca0e75b77d62d8d748aa66453532d9b (patch)
tree0fdf136db5371bb6c69ec27c1ecddcc5c270f50c /windows/mpconfigport.h
parentbff1ff28eec5611a2e963601b98044135694df57 (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.h2
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"