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  <br...@clisp.org>

        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