]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Removed conditioning on HAVE_LIBGMP.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 12 Oct 2009 08:01:04 +0000 (10:01 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 12 Oct 2009 08:01:04 +0000 (10:01 +0200)
Rev: nettle/sexp-format.c:1.2

sexp-format.c

index 94601b6bc90856b8825377f441385a6fea8e9dd1..a3e6d920645f005dd648877a6ae89b4c6a42df5a 100644 (file)
 #include "sexp.h"
 #include "buffer.h"
 
-#if HAVE_LIBGMP
-# include "bignum.h"
-#endif
+#include "bignum.h"
 
-/* Code copied from sexp-conv.c: sexp_put_length */
 static unsigned
 format_prefix(struct nettle_buffer *buffer,
              unsigned length)
@@ -293,7 +290,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
              }
            case 'b':
              {
-#if HAVE_LIBGMP
                const MP_INT *n = va_arg(args, const MP_INT *);
                unsigned length;
                unsigned prefix_length;
@@ -316,9 +312,6 @@ sexp_vformat(struct nettle_buffer *buffer, const char *format, va_list args)
 
                done += length;
              
-#else /* ! HAVE_LIBGMP */
-               abort();
-#endif /* ! HAVE_LIBGMP */
                break;
              }
            }