aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-07-21 22:38:14 -0600
committerGavin Howard <gavin@yzena.com>2021-07-21 22:38:50 -0600
commit6df6339ebbe11b03cb03c4dd4871eaabf3cd6a9a (patch)
tree08270917dad5c20bd30bb97397d7f693e79708ff /include
parent43e76ead0b22ed4430d5e6d8110430527f37c00a (diff)
downloadplatform_external_bc-6df6339ebbe11b03cb03c4dd4871eaabf3cd6a9a.tar.gz
platform_external_bc-6df6339ebbe11b03cb03c4dd4871eaabf3cd6a9a.tar.bz2
platform_external_bc-6df6339ebbe11b03cb03c4dd4871eaabf3cd6a9a.zip
Make a bc-only build build
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'include')
-rw-r--r--include/num.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/num.h b/include/num.h
index 345026a2..bfd360b5 100644
--- a/include/num.h
+++ b/include/num.h
@@ -734,8 +734,6 @@ void bc_num_shiftRight(BcNum *restrict n, size_t places);
*/
ssize_t bc_num_cmp(const BcNum *a, const BcNum *b);
-#if DC_ENABLED
-
/**
* Modular exponentiation.
* @param a The first parameter.
@@ -745,8 +743,6 @@ ssize_t bc_num_cmp(const BcNum *a, const BcNum *b);
*/
void bc_num_modexp(BcNum *a, BcNum *b, BcNum *c, BcNum *restrict d);
-#endif // DC_ENABLED
-
/**
* Sets @a n to zero with a scale of zero.
* @param n The number to zero.
@@ -797,7 +793,7 @@ void bc_num_parse(BcNum *restrict n, const char *restrict val, BcBigDig base);
*/
void bc_num_print(BcNum *restrict n, BcBigDig base, bool newline);
-#if DC_ENABLED
+#if !BC_ENABLE_LIBRARY
/**
* Prints a number as a character stream.
@@ -805,7 +801,7 @@ void bc_num_print(BcNum *restrict n, BcBigDig base, bool newline);
*/
void bc_num_stream(BcNum *restrict n);
-#endif // DC_ENABLED
+#endif // !BC_ENABLE_LIBRARY
#if BC_DEBUG_CODE