Split the double-inclusion guard. Fixes a problem with #include_next.
[gnulib.git] / lib / dirent_.h
index 371aeac..94e44fc 100644 (file)
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #ifndef _GL_DIRENT_H
-#define _GL_DIRENT_H
 
+/* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_INCLUDE_NEXT@
 # include_next <dirent.h>
 #else
 # include @ABSOLUTE_DIRENT_H@
 #endif
 
+#ifndef _GL_DIRENT_H
+#define _GL_DIRENT_H
+
+
 /* Declare overridden functions.  */
 
 #ifdef __cplusplus
@@ -43,3 +47,4 @@ extern int closedir (DIR *);
 
 
 #endif /* _GL_DIRENT_H */
+#endif /* _GL_DIRENT_H */