Fixup 676e7ea4885b16fca8dd74bfacca7beef34d2232
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/bn_mp_fread.c b/bn_mp_fread.c
index a4fa8c9..b06d988 100644
--- a/bn_mp_fread.c
+++ b/bn_mp_fread.c
@@ -15,6 +15,7 @@
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
*/
+#ifndef LTM_NO_FILE
/* read a bigint from a file stream in ASCII */
int mp_fread(mp_int *a, int radix, FILE *stream)
{
@@ -59,6 +60,7 @@ int mp_fread(mp_int *a, int radix, FILE *stream)
return MP_OKAY;
}
+#endif
#endif
diff --git a/bn_mp_fwrite.c b/bn_mp_fwrite.c
index 90f1fc5..d7b2ff2 100644
--- a/bn_mp_fwrite.c
+++ b/bn_mp_fwrite.c
@@ -15,6 +15,7 @@
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
*/
+#ifndef LTM_NO_FILE
int mp_fwrite(mp_int *a, int radix, FILE *stream)
{
char *buf;
@@ -44,6 +45,7 @@ int mp_fwrite(mp_int *a, int radix, FILE *stream)
XFREE (buf);
return MP_OKAY;
}
+#endif
#endif