]> Savannah Git Hosting - gnulib.git/commitdiff
sys_times: Make double-inclusion guard more robust.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Aug 2023 18:38:51 +0000 (20:38 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Aug 2023 18:38:51 +0000 (20:38 +0200)
* lib/sys_times.in.h: Test the guard symbol a second time.

ChangeLog
lib/sys_times.in.h

index 733921324fb0a0ae26cb04ceae2f93b651c4000d..aa401f7efe22e09a79ee34e11be26ae55b535570 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-26  Bruno Haible  <bruno@clisp.org>
+
+       sys_times: Make double-inclusion guard more robust.
+       * lib/sys_times.in.h: Test the guard symbol a second time.
+
 2023-08-26  Bruno Haible  <bruno@clisp.org>
 
        uchar: Make #include_next work right.
index 5afe9e5703aa3862f076698fcde7306a1d594f8d..204fa367fe134d39d8e7c047a8e17e7f1b540a09 100644 (file)
 # endif
 @PRAGMA_COLUMNS@
 
+/* The include_next requires a split double-inclusion guard.  */
 # if @HAVE_SYS_TIMES_H@
 #  @INCLUDE_NEXT@ @NEXT_SYS_TIMES_H@
 # endif
 
+# ifndef _@GUARD_PREFIX@_SYS_TIMES_H
 # define _@GUARD_PREFIX@_SYS_TIMES_H
 
 /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*.  */
@@ -82,4 +84,5 @@ _GL_WARN_ON_USE (times, "times is unportable - "
 }
 # endif
 
+# endif                         /* _@GUARD_PREFIX@_SYS_TIMES_H */
 #endif                          /* _@GUARD_PREFIX@_SYS_TIMES_H */