unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Hannes Müller via Bug reports for GUILE, GNU's Ubiquitous Extension Language" <bug-guile@gnu.org>
To: 75085@debbugs.gnu.org
Subject: bug#75085: bug report with patch 0004-libguile-scm.h-fix-BUILDING_LIBGUILE-for-Werror-unde.patch
Date: Wed, 25 Dec 2024 12:54:54 +0000	[thread overview]
Message-ID: <trinity-0e7aebc0-069b-4dec-8dd0-0335b9b9dfdf-1735131294867@trinity-msg-rest-gmx-gmx-live-bbc95d94c-pfssw> (raw)

[-- Attachment #1: Type: text/html, Size: 441 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0004-libguile-scm.h-fix-BUILDING_LIBGUILE-for-Werror-unde.patch --]
[-- Type: text/x-patch, Size: 1244 bytes --]

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:[~2024-12-25 12:54 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=trinity-0e7aebc0-069b-4dec-8dd0-0335b9b9dfdf-1735131294867@trinity-msg-rest-gmx-gmx-live-bbc95d94c-pfssw \
    --to=bug-guile@gnu.org \
    --cc=75085@debbugs.gnu.org \
    --cc=h.c.f.mueller@gmx.de \
    /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).