Skip to content

Commit b98e56b

Browse files
committed
Fix win32 issues in eng_start.c
Src-commit: d5c5c1879167da3ca4c129ece73b6827e7521ba7
1 parent a8dd05e commit b98e56b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/engine/eng_start.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ static void open_exec_skip_stub(const char *file, FILE **stream) {
130130
engine_exit(1);
131131
}
132132

133+
extern char *ciao_suffix;
134+
133135
CBOOL__PROTO(load_boot, const char *boot_path, const char *exec_path) {
134136
FILE *qfile = NULL;
135137

@@ -146,7 +148,7 @@ CBOOL__PROTO(load_boot, const char *boot_path, const char *exec_path) {
146148
} else {
147149
expand_file_name(boot_path,TRUE,source_path);
148150
#if defined(Win32)
149-
i = strlen(source_path)-4;
151+
int i = strlen(source_path)-4;
150152
if (i > 0 && strcmp(source_path+i,".bat") == 0){
151153
int j;
152154
for (j = 1; ciao_suffix[j] && (i+j < MAXPATHLEN); j++) {
@@ -195,8 +197,6 @@ void init_winsock2(void) {
195197

196198
extern char cwd[];
197199

198-
extern char *ciao_suffix;
199-
200200
void ciao_initcode(void); /* initialize foreign interface definitions */
201201

202202
void eng_stub_set_length(int len) {

0 commit comments

Comments
 (0)