mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Enable option to prefer mini-gmp over libgmp
* configure.ac: rework gmp library detection. Add new flag. * libguile.h: modify gmp header inclusion * libguile/Makefile.am: add mini-gmp.[ch] files * libguile/bytevectors.c: add mini-gmp headers * libguile/gen-scmconfig.c: new #include variable GUILE_MINI_GMP * libguile/init.c: add mini-gmp header * libguile/mini-gmp.c: new file * libguile/mini-gmp.h: new file * libguile/numbers.c: add fallback for missing mpz_get_d_2exp * libguile/numbers.h: yse mini-gmp header * libguile/random.c: use mini-gmp header * libguile/socket.c: use mini-gmp header
This commit is contained in:
parent
a4a5fbced3
commit
eb1bd8050e
12 changed files with 4951 additions and 25 deletions
16
libguile.h
16
libguile.h
|
@ -22,15 +22,21 @@
|
|||
|
||||
|
||||
|
||||
/* This needs to be included outside of the extern "C" block.
|
||||
*/
|
||||
#include <gmp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "libguile/scm.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#if GUILE_MINI_GMP
|
||||
#include "libguile/mini-gmp.h"
|
||||
#else
|
||||
#include <gmp.h>
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "libguile/alist.h"
|
||||
#include "libguile/array-handle.h"
|
||||
#include "libguile/array-map.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue