From: "H. Müller" <h.c.f.mueller@gmail.com>
To: guile-devel@gnu.org
Subject: [PATCH] libguile/scm.h: fix BUILDING_LIBGUILE for -Werror=undef
Date: Sun, 02 Feb 2025 20:57:23 +0100 [thread overview]
Message-ID: <2e8312320f43d023ed05afabdd23e95ffe28926d.camel@gmail.com> (raw)
From 696151ca382c7b166d349f704812dd73bc2fa7a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hannes=20M=C3=BCller?= <>
Date: Sat, 21 Dec 2024 19:20:17 +0100
Subject: [PATCH] libguile/scm.h: fix BUILDING_LIBGUILE for -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 dc3a3a84f908f4a16e95a2c3bb412861521960dc
---
libguile/scm.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libguile/scm.h b/libguile/scm.h
index 4d079b1a8..180b40159 100644
--- a/libguile/scm.h
+++ b/libguile/scm.h
@@ -718,9 +718,9 @@ enum scm_tc8_tags
/* SCM_API is a macro prepended to all function and data definitions
which should be exported from libguile. */
-#if BUILDING_LIBGUILE && HAVE_VISIBILITY
+#if defined BUILDING_LIBGUILE && HAVE_VISIBILITY
# 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
#elif defined _WIN32 || defined __CYGWIN__
# define SCM_API __declspec(dllimport) extern
--
2.45.2
reply other threads:[~2025-02-02 19:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e8312320f43d023ed05afabdd23e95ffe28926d.camel@gmail.com \
--to=h.c.f.mueller@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).