HI,
version 2.12.8.0/1, commit 91991bb729a3bfd883535a9c9715851d29a9c3aa introduced code which relies in CUSTOM to be set:
gcc -DCALC_SRC -UCUSTOM -Wall -march=native -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=pentium4 -fasync
hronous-unwind-tables -c -o lib_calc.o lib_calc.c
lib_calc.c: In function 'initenv':
lib_calc.c:573: error: 'CUSTOMHELPDIR' undeclared (first use in this function)
lib_calc.c:573: error: (Each undeclared identifier is reported only once
lib_calc.c:573: error: for each function it appears in.)
make: *** [lib_calc.o] Error 1
HI, version 2.12.8.0/1, commit 91991bb729a3bfd883535a9c9715851d29a9c3aa introduced code which relies in CUSTOM to be set:
For it to compile without CUSTOM, the block of code beginning at https://github.com/lcn2/calc/blob/91991bb729a3bfd883535a9c9715851d29a9c3aa/lib_calc.c#L568 needs to be protected by
#if defined(CUSTOM)
.I won't create a PR for a simple fix - here's my patch:
"Works for me." Thanks.