Fix compile error when math support disabled.
This commit is contained in:
parent
5275b1e49f
commit
5f2a23c3c6
@ -1445,12 +1445,13 @@ static void changepath(const char *);
|
|||||||
static void defun(char *, union node *);
|
static void defun(char *, union node *);
|
||||||
static void unsetfunc(const char *);
|
static void unsetfunc(const char *);
|
||||||
|
|
||||||
#ifdef CONFIG_ASH_MATH_SUPPORT
|
|
||||||
#ifdef CONFIG_ASH_MATH_SUPPORT_64
|
#ifdef CONFIG_ASH_MATH_SUPPORT_64
|
||||||
typedef int64_t arith_t;
|
typedef int64_t arith_t;
|
||||||
#else
|
#else
|
||||||
typedef long arith_t;
|
typedef long arith_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_ASH_MATH_SUPPORT
|
||||||
static arith_t dash_arith(const char *);
|
static arith_t dash_arith(const char *);
|
||||||
static arith_t arith(const char *expr, int *perrcode);
|
static arith_t arith(const char *expr, int *perrcode);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user