File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ jeload(void* callbacks) -> J {
97
97
auto
98
98
jepath (char * arg, char * lib) -> void {
99
99
uint32_t const sz = 4000 ;
100
- uint32_t len = sz; // Cant be const for function call _NSGetExecutablePath
101
100
102
101
// C strings need to be used for POSIX APIs and macOS APIs
103
102
auto arg2 = new char [sz];
@@ -109,6 +108,7 @@ jepath(char* arg, char* lib) -> void {
109
108
// try host dependent way to get path to executable
110
109
// use arg if they fail (arg command in PATH won't work)
111
110
#ifdef __MACH__
111
+ uint32_t len = sz; // Cant be const for function call _NSGetExecutablePath
112
112
// Returns 0 if path was copied, otherwise -1 if failed.
113
113
if (_NSGetExecutablePath (arg2, &len) != 0 ) strcat (arg2, arg);
114
114
#else
You can’t perform that action at this time.
0 commit comments