Restore ability to compile calc without -DCUSTOM

This commit is contained in:
Landon Curt Noll
2021-02-20 09:25:48 -08:00
parent 64e2c6a262
commit 1ab3b2c313
2 changed files with 18 additions and 10 deletions

View File

@@ -565,6 +565,7 @@ initenv(void)
calc_helpdir = HELPDIR;
}
#if defined(CUSTOM)
/* determine the $CALCCUSTOMHELP value */
c = (no_env ? NULL : getenv(CALCCUSTOMHELP));
calc_customhelpdir = (c ? strdup(c) : NULL);
@@ -572,6 +573,7 @@ initenv(void)
/* will use /usr/local/share/calc/custhelp */
calc_customhelpdir = CUSTOMHELPDIR;
}
#endif /* CUSTOM */
}