1 parent b3e2aca commit f95142dCopy full SHA for f95142d
3 files changed
src/runtime/eval.c
@@ -85,6 +85,10 @@ extern char **environ; /* should probably be behind some WANT_ */
85
#include "ffi_errno.c"
86
#endif
87
88
+#if !defined(GET_EXECUTABLE_PATH)
89
+char *get_executable_path(void) { return NULL; }
90
+#endif
91
+
92
#define NEED_INT64 (WANT_INT64 && WORD_SIZE < 64)
93
94
#if WANT_LZ77
src/runtime/unix/extra.c
@@ -218,3 +218,4 @@ get_executable_path(void) {
218
return NULL;
219
220
}
221
+#define GET_EXECUTABLE_PATH get_executable_path
src/runtime/windows/extra.c
@@ -181,3 +181,4 @@ get_executable_path(void) {
181
free(wbuf);
182
return utf8_buf;
183
184
0 commit comments