From: Collin Funk Date: Tue, 8 Jul 2025 22:57:36 +0000 (-0700) Subject: stdcountof-h: Add reminder to include . X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adad3d69237190d12ad15abb077ed8ff6eb0ca3b;p=thirdparty%2Fgnulib.git stdcountof-h: Add reminder to include . * lib/stdcountof.in.h: Check that config.h was already included. --- diff --git a/ChangeLog b/ChangeLog index d09840c10d..02db58e594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-07-08 Collin Funk + + stdcountof-h: Add reminder to include . + * lib/stdcountof.in.h: Check that config.h was already included. + 2025-07-07 Bruno Haible float-h: Enforce the ISO C 23 compliant value for LDBL_EPSILON. diff --git a/lib/stdcountof.in.h b/lib/stdcountof.in.h index 683b1c7156..d5def6bf57 100644 --- a/lib/stdcountof.in.h +++ b/lib/stdcountof.in.h @@ -18,6 +18,11 @@ #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