Skip to content

Commit 2cdeefd

Browse files
committed
Test application / gcc:
- fixed build with gcc (problem with 'goto') - excluded unneeded libraries from project
1 parent 318ad78 commit 2cdeefd

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Test/test.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -402,16 +402,17 @@ int main(int argc, const char **argv)
402402
{
403403
result = gzread(gz, buffer, BUFFER_SIZE);
404404
if (result < 0)
405-
{
406-
unpack_error:
407-
printf(" Unpack ERROR %d\n", result);
408-
exit(1);
409-
}
405+
goto unpack_error;
410406
unpSize += result;
411407
}
412408

413409
result = gzclose(gz);
414-
if (result != Z_OK) goto unpack_error;
410+
if (result != Z_OK)
411+
{
412+
unpack_error:
413+
printf(" Unpack ERROR %d\n", result);
414+
exit(1);
415+
}
415416

416417
unpackClocks += clock() - clock_a;
417418
}

Test/test.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EXEDIR = $R/obj/bin
2323

2424
!if "$COMPILER" eq "GnuC"
2525
# linux/cygwin + GCC
26-
STDLIBS = stdc++ m GL # libm for math.h functions
26+
STDLIBS = stdc++
2727
!if "$PLATFORM" ne "cygwin"
2828
STDLIBS += dl # dlopen() and friends
2929
!endif

0 commit comments

Comments
 (0)