]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
stdcountof-h: Add reminder to include <config.h>.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 8 Jul 2025 22:57:36 +0000 (15:57 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 8 Jul 2025 22:57:36 +0000 (15:57 -0700)
* lib/stdcountof.in.h: Check that config.h was already included.

ChangeLog
lib/stdcountof.in.h

index d09840c10db51d8b4b284caa3b4bb47161dd726f..02db58e594adb8bba030ef8ef9605fd69e158416 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-07-08  Collin Funk  <collin.funk1@gmail.com>
+
+       stdcountof-h: Add reminder to include <config.h>.
+       * lib/stdcountof.in.h: Check that config.h was already included.
+
 2025-07-07  Bruno Haible  <bruno@clisp.org>
 
        float-h: Enforce the ISO C 23 compliant value for LDBL_EPSILON.
index 683b1c715622082a5f3b3a6fc0c2124f5d9da061..d5def6bf57797dc5ce0c4eea184ce13d4f80ab4a 100644 (file)
 #ifndef _GL_STDCOUNTOF_H
 #define _GL_STDCOUNTOF_H
 
+/* This file uses _GL_GNUC_PREREQ.  */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
 /* Get size_t.  */
 #include <stddef.h>