Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Mon, Jul 1, 2013 at 4:01 AM, Lionel Elie Mamane <lionel@mamane.lu> wrote:
On Mon, Jul 01, 2013 at 12:17:41AM -0500, Norbert Thiebaud wrote:
On Sun, Jun 30, 2013 at 2:05 PM, Andrzej J. R. Hunt <andrzej@ahunt.org> wrote:

Finally I've had to do things like replace snprintf with _snprintf --
currently decided using an ifdef -- this seems somewhat unclean but I'm
not sure of any better way to do this.

A Windows expert will maybe correct me, but I think this "_" prefix is
just part of the Windows ABI (name mangling or C name decoration) and
thus should not be in the source code. It should be added
~automatically by the compiler.

While it is true that _ is added.. in that case the underlying symbol
is __snprintf
a lot of 'normal' c/posix function 'foo' are named _foo on windows for
some reason...

http://msdn.microsoft.com/en-US/library/ms235384%28v=vs.80%29.aspx

Norbert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.