[Rpm-maint] PATCH 1/2013 Take rid of redefinitions of __BEGIN_DECLS and __END_DECLS

n54 at gmx.com n54 at gmx.com
Thu Jul 25 15:38:57 UTC 2013


Hello,

I'm attaching a patch with the following change-log:

1. Stop defining __BEGIN_DECLS and __END_DECLS in fts.h
2. Replace occurences of __BEGIN_DECLS with:
extern "C" {
3. Replace occurences of __BEGIN_DECLS with:
}

Comment
=======
__BEGIN_DECLS and __END_DECLS are already defined in the NetBSD's standard C
library as an internal definition and redefinition of it causes errors.

The possible solutions are to rename the definitions or take rid of them.

Actually __BEGIN_DECLS and __END_DECLS are used only once and encapsulate
'extern "C" {' and '}', so they aren't really helping more then obfuscating
the code.

Regards,
Kamil Rytarowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20130725/442d2c05/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Take-rid-of-redefinitions-of-__BEGIN_DECLS-and-__END.patch
Type: text/x-diff
Size: 1650 bytes
Desc: Attachment: 0001-Take-rid-of-redefinitions-of-__BEGIN_DECLS-and-__END.patch
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20130725/442d2c05/attachment.bin>


More information about the Rpm-maint mailing list