summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 602fba4d22..17449fad4f 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -71,9 +71,13 @@ static int w32_stati128(const char *path, struct stati128 *st, UINT cp, BOOL lst
static char *w32_getenv(const char *name, UINT cp);
#undef getenv
+/*
+ * Do not remove the macros to substitute functions in dln_find.c.
+ */
#define DLN_FIND_EXTRA_ARG_DECL ,UINT cp
#define DLN_FIND_EXTRA_ARG ,cp
#define rb_w32_stati128(path, st) w32_stati128(path, st, cp, FALSE)
+#define getenv(name) w32_getenv(name, cp)
#undef CharNext
#define CharNext(p) CharNextExA(cp, (p), 0)
#define dln_find_exe_r rb_w32_udln_find_exe_r