[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ffs: support symbol renaming
From: |
Bruno Haible |
Subject: |
ffs: support symbol renaming |
Date: |
Thu, 13 Oct 2011 23:38:11 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Libraries which use gnulib need to be able to rename symbols, for
namespace cleanliness. This is commonly done through definitions
such as
#define ffs libfoo_ffs
in <config.h>. But for this to work, the implementation of the gnulib
module must include <config.h>.
2011-10-13 Bruno Haible <address@hidden>
ffs, bcopy, memset: Support symbol renaming via config.h.
* lib/ffs.c: Include <config.h>.
* lib/bcopy.c: Likewise.
* lib/memset.c: Likewise.
--- lib/ffs.c.orig Thu Oct 13 23:33:22 2011
+++ lib/ffs.c Thu Oct 13 11:33:14 2011
@@ -16,6 +16,9 @@
/* Written by Eric Blake. */
+#include <config.h>
+
+/* Specification. */
#include <strings.h>
#include <limits.h>
--- lib/bcopy.c.orig Thu Oct 13 23:33:22 2011
+++ lib/bcopy.c Thu Oct 13 23:32:37 2011
@@ -3,6 +3,8 @@
In the public domain.
By David MacKenzie <address@hidden>. */
+#include <config.h>
+
#include <stddef.h>
void
--- lib/memset.c.orig Thu Oct 13 23:33:22 2011
+++ lib/memset.c Thu Oct 13 23:32:35 2011
@@ -15,6 +15,8 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#include <config.h>
+
#include <stddef.h>
void *
--
In memoriam Bekir Çoban-zade <http://en.wikipedia.org/wiki/Bekir_Çoban-zade>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ffs: support symbol renaming,
Bruno Haible <=