1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

Don't expose mini-gmp to users

* libguile.h: Don't import anything GMP-related.
* libguile/numbers.h: Import GMP here instead.  If we are using
mini-GMP, only import it when building Guile.
(scm_to_mpz, scm_from_mpz): Don't define when mini-gmp is enabled.
This commit is contained in:
Andy Wingo 2021-03-08 22:12:37 +01:00
parent 91547abf54
commit f46477f6f5
2 changed files with 26 additions and 14 deletions

View file

@ -1,7 +1,7 @@
#ifndef SCM_LIBGUILE_H
#define SCM_LIBGUILE_H
/* Copyright 1995-1998,2000-2004,2006,2008-2014,2018,2020
/* Copyright 1995-1998,2000-2004,2006,2008-2014,2018,2020-2021
Free Software Foundation, Inc.
This file is part of Guile.
@ -25,18 +25,9 @@
#ifdef __cplusplus
extern "C" {
#endif
#include "libguile/scm.h"
#ifdef __cplusplus
}
#endif
#if SCM_ENABLE_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"