Commit 58945275 authored by Niels Möller's avatar Niels Möller
Browse files

Removed conditioning on HAVE_LIBGMP.

Rev: nettle/sexp-format.c:1.2
parent a77a9215
...@@ -36,11 +36,8 @@ ...@@ -36,11 +36,8 @@
#include "sexp.h" #include "sexp.h"
#include "buffer.h" #include "buffer.h"
#if HAVE_LIBGMP #include "bignum.h"
# include "bignum.h"
#endif
/* Code copied from sexp-conv.c: sexp_put_length */
static unsigned static unsigned
format_prefix(struct nettle_buffer *buffer, format_prefix(struct nettle_buffer *buffer,
unsigned length) unsigned length)
...@@ -293,7 +290,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args) ...@@ -293,7 +290,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
} }
case 'b': case 'b':
{ {
#if HAVE_LIBGMP
const MP_INT *n = va_arg(args, const MP_INT *); const MP_INT *n = va_arg(args, const MP_INT *);
unsigned length; unsigned length;
unsigned prefix_length; unsigned prefix_length;
...@@ -316,9 +312,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args) ...@@ -316,9 +312,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
done += length; done += length;
#else /* ! HAVE_LIBGMP */
abort();
#endif /* ! HAVE_LIBGMP */
break; break;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment