mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Restore ability to compile calc without -DCUSTOM
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user