aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-08-11 17:45:46 -0600
committerGavin Howard <gavin@yzena.com>2021-08-11 17:45:46 -0600
commit7e218161a9d24ced06bd250350afe8a5b815ae08 (patch)
treee5b8af084ee8935e81a9bfd30f98ff62da1b1ab3 /include
parent433e8d533e4d3038ce61ed0912d069be200cbb06 (diff)
downloadplatform_external_bc-7e218161a9d24ced06bd250350afe8a5b815ae08.tar.gz
platform_external_bc-7e218161a9d24ced06bd250350afe8a5b815ae08.tar.bz2
platform_external_bc-7e218161a9d24ced06bd250350afe8a5b815ae08.zip
Fix a build error on Android
This disables the library by default if BC_ENABLE_LIBRARY is not defined. I can do this because bcl.h still enables it for using building with the library. Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'include')
-rw-r--r--include/status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/status.h b/include/status.h
index 781248ad..662f2b89 100644
--- a/include/status.h
+++ b/include/status.h
@@ -53,6 +53,10 @@
#define DC_ENABLED (1)
#endif // DC_ENABLED
+#ifndef BC_ENABLE_LIBRARY
+#define BC_ENABLE_LIBRARY (0)
+#endif // BC_ENABLE_LIBRARY
+
// This is error checking for fuzz builds.
#if BC_ENABLE_AFL
#ifndef __AFL_HAVE_MANUAL_CONTROL