mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
libguile/scm.h: Allow compilation with ‘-Werror=undef’.
* libguile/scm.h: BUILDING_LIBGUILE is not always defined. This is
signaled by -Werror=undef in code using libguile. This patch fixes
commit dc3a3a84f9
* NEWS: Update.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
5abb24efe4
commit
ff4d79074c
2 changed files with 4 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -78,6 +78,8 @@ every line in a file.
|
||||||
available or the port isn't a tty).
|
available or the port isn't a tty).
|
||||||
** Fix build error when cross-compiling to MinGW
|
** Fix build error when cross-compiling to MinGW
|
||||||
(<https://bugs.gnu.org/75642>)
|
(<https://bugs.gnu.org/75642>)
|
||||||
|
** Change <libguile/scm.h> to allow compilation with -Werror=undef
|
||||||
|
(<https://bugs.gnu.org/75085>)
|
||||||
|
|
||||||
|
|
||||||
Changes in 3.0.10 (since 3.0.9)
|
Changes in 3.0.10 (since 3.0.9)
|
||||||
|
|
|
@ -718,9 +718,9 @@ enum scm_tc8_tags
|
||||||
|
|
||||||
/* SCM_API is a macro prepended to all function and data definitions
|
/* SCM_API is a macro prepended to all function and data definitions
|
||||||
which should be exported from libguile. */
|
which should be exported from libguile. */
|
||||||
#if BUILDING_LIBGUILE && HAVE_VISIBILITY
|
#if defined BUILDING_LIBGUILE && HAVE_VISIBILITY
|
||||||
# define SCM_API extern __attribute__((__visibility__("default")))
|
# define SCM_API extern __attribute__((__visibility__("default")))
|
||||||
#elif BUILDING_LIBGUILE && (defined _WIN32 || defined __CYGWIN__)
|
#elif defined BUILDING_LIBGUILE && (defined _WIN32 || defined __CYGWIN__)
|
||||||
# define SCM_API __declspec(dllexport) extern
|
# define SCM_API __declspec(dllexport) extern
|
||||||
#elif defined _WIN32 || defined __CYGWIN__
|
#elif defined _WIN32 || defined __CYGWIN__
|
||||||
# define SCM_API __declspec(dllimport) extern
|
# define SCM_API __declspec(dllimport) extern
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue