mozilla / mozjpeg

Improved JPEG encoder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unterminated #if in file jpegtran.c

Salle79 opened this issue · comments

tried to install from master branch which worked a week ago,
From install log and after looking at the source code it appears that the problem might be a not properly closed if case statement (among other things maybe ?):

......

Scanning dependencies of target jpegtran-static
[ 73%] Building C object CMakeFiles/jpegtran-static.dir/jpegtran.c.o
[ 73%] Built target jpeg
**/root/mozjpeg/jpegtran.c: In function 'main':
/root/mozjpeg/jpegtran.c:772: error: unterminated #if
 #if JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)
 
/root/mozjpeg/jpegtran.c:830:1: error: expected declaration or statement at end of input
 }
 ^
make[2]: *** [CMakeFiles/jpegtran-static.dir/build.make:63: CMakeFiles/jpegtran-static.dir/jpegtran.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:339: CMakeFiles/jpegtran-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....**

Fixed, thanks