From: Collin Funk Date: Tue, 8 Jul 2025 22:59:08 +0000 (-0700) Subject: options: Add reminder to include . X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697bc7c04c1bd92b27d83de88ae82347b04a37a2;p=thirdparty%2Fgnulib.git options: Add reminder to include . * lib/options.h: Check that config.h was already included. --- diff --git a/ChangeLog b/ChangeLog index 02db58e594..f52a907487 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-07-08 Collin Funk + options: Add reminder to include . + * lib/options.h: Check that config.h was already included. + stdcountof-h: Add reminder to include . * lib/stdcountof.in.h: Check that config.h was already included. diff --git a/lib/options.h b/lib/options.h index 66d8710ca4..7a4a266f84 100644 --- a/lib/options.h +++ b/lib/options.h @@ -19,6 +19,11 @@ #ifndef _OPTIONS_H #define _OPTIONS_H +/* This file uses _GL_GNUC_PREREQ. */ +#if !_GL_CONFIG_H_INCLUDED + #error "Please include config.h first." +#endif + /* This file provides a more convenient API to parsing program options, based on GNU getopt_long() and thus compatible with the option parsing conventions for GNU programs