bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proposed new module careadlinkat (renamed from breadlinkat)


From: Bruno Haible
Subject: Re: proposed new module careadlinkat (renamed from breadlinkat)
Date: Sat, 9 Apr 2011 18:22:55 +0200
User-agent: KMail/1.9.9

Paul Eggert wrote:
> +
> +#ifndef _GL_ALLOCATOR_H
> +
> ...
> +
> +#ifndef _GL_CAREADLINKAT_H
> +

I think this was meant as a double-inclusion guard, but is currently a no-op.
This fixes it:


2011-04-09  Bruno Haible  <address@hidden>

        allocator, careadlinkat: Fix double-inclusion guard.
        * lib/allocator.h: Fix double-inclusion guard.
        * lib/careadlinkat.h: Likewise.

diff --git a/lib/allocator.h b/lib/allocator.h
index a89ba32..953117d 100644
--- a/lib/allocator.h
+++ b/lib/allocator.h
@@ -18,6 +18,7 @@
 /* Written by Paul Eggert.  */
 
 #ifndef _GL_ALLOCATOR_H
+#define _GL_ALLOCATOR_H
 
 #include <stddef.h>
 
@@ -53,4 +54,4 @@ struct allocator
 /* An allocator using the stdlib functions and a null DIE function.  */
 extern struct allocator const stdlib_allocator;
 
-#endif
+#endif /* _GL_ALLOCATOR_H */
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
index c5e4bcf..be8670f 100644
--- a/lib/careadlinkat.h
+++ b/lib/careadlinkat.h
@@ -18,6 +18,7 @@
 /* Written by Paul Eggert, Bruno Haible, and Jim Meyering.  */
 
 #ifndef _GL_CAREADLINKAT_H
+#define _GL_CAREADLINKAT_H
 
 #include <fcntl.h>
 #include <unistd.h>

-- 
In memoriam Georg Elser <http://en.wikipedia.org/wiki/Georg_Elser>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]