From: Ken Raeburn <raeburn@raeburn.org>
Subject: Re: deprecated symbol warnings and Windows
Date: Wed, 18 May 2005 15:18:48 -0400 [thread overview]
Message-ID: <27b2c90eb12f5379d6c65ed9ad0a0801@raeburn.org> (raw)
In-Reply-To: <4285F1CA.5070602@ossau.uklinux.net>
On May 14, 2005, at 08:40, Neil Jerram wrote:
>> The warnings can be disabled while building guile (only while
>> building deprecated.c, I hope) so that -Werror doesn't kill the
>> build.
>> In the header files, here's how it's taking shape, roughly:
>> #if defined(SCM_DISABLE_DEPRECATION_WARNINGS)
>> # define SCM_DECL_DEPRECATED /* empty */
>> #elif __GNUC__ >= 3
>> # define SCM_DECL_DEPRECATED __attribute__((deprecated))
>> #elif defined _WIN32
>
> Does the __declspec syntax work for all Windows compilers? If it's
> actually specific to MSVC (which is the only compiler I'm familiar
> with), you should use _MSC_VER. If it's for all Windows compilers,
> I'm surprised by the underscore - i.e. I'd normally use WIN32; are
> WIN32 and _WIN32 equivalent?
I've done a bit more investigating, and it appears that
__declspec(deprecated) is new with Visual Studio 2003, or maybe 2002.
So there would be no warning with older compilers, probably. (And the
older compiler we've been using at work defines _WIN32 but not WIN32.)
For now, in my code, I'm testing _MSC_VER >= 1310.
In looking at the current headers, I think when I'm changing macros
into functions, I need to stick "SCM_API" in front where I'd use
"extern" normally, to get the Windows DLL import/export specs right?
So this conversion will actually be adding to the exported-symbol list
of the DLL. (Has anyone thought about limiting exported symbols on
UNIX?) I've just gotten access to the newer compilers, so I should be
able to run some tests any make sure I've gotten the syntax right for
multiple declspecs etc.
Oh, and based on the discussions, I'm sticking with the "#define foo
foo" form for now, rather than renaming symbols.
Ken
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
prev parent reply other threads:[~2005-05-18 19:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1CmxC0-0003DB-Gx@sc8-sf-web1.sourceforge.net>
2005-01-07 17:31 ` SCM_LENGTH ??? Bruce Korb
2005-01-07 18:07 ` Marius Vollmer
2005-01-07 18:27 ` Bruce Korb
2005-01-10 17:26 ` Marius Vollmer
2005-01-10 18:03 ` Bruce Korb
2005-01-10 20:59 ` Greg Troxel
2005-01-11 18:08 ` Marius Vollmer
2005-01-11 23:40 ` Kevin Ryde
2005-01-12 10:33 ` Marius Vollmer
2005-01-10 20:34 ` Ken Raeburn
2005-01-11 16:12 ` Bruce Korb
2005-01-11 18:32 ` Marius Vollmer
2005-05-14 2:52 ` deprecated symbol warnings Ken Raeburn
2005-05-14 12:40 ` Neil Jerram
2005-05-14 18:48 ` Ken Raeburn
2005-05-15 3:17 ` John W. Eaton
2005-05-15 10:19 ` Neil Jerram
2005-05-16 5:52 ` Ken Raeburn
2005-05-18 4:22 ` tomas
2005-05-18 12:20 ` Ludovic Courtès
2005-05-18 17:17 ` automated testing (was Re: deprecated symbol warnings) Ken Raeburn
2005-05-26 18:58 ` deprecated symbol warnings Neil Jerram
2005-05-28 21:55 ` Ken Raeburn
2005-05-18 19:18 ` Ken Raeburn [this message]
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=27b2c90eb12f5379d6c65ed9ad0a0801@raeburn.org \
--to=raeburn@raeburn.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).