* lib/cygpath.h: Check that config.h was already included so _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE are defined. --- ChangeLog | 6 ++++++ lib/cygpath.h | 5 +++++ 2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 1147e4582a..995118b0ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-03-16 Collin Funk <[email protected]> + + cygpath: Add reminder to include <config.h>. + * lib/cygpath.h: Check that config.h was already included so + _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE are defined. + 2026-03-16 Bruno Haible <[email protected]> stdc_memrevers8u: Add comment. diff --git a/lib/cygpath.h b/lib/cygpath.h index 989e944b51..b6bcf2e62e 100644 --- a/lib/cygpath.h +++ b/lib/cygpath.h @@ -19,6 +19,11 @@ #ifndef _CYGPATH_H #define _CYGPATH_H +/* This file uses _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE. */ +#if !_GL_CONFIG_H_INCLUDED + #error "Please include config.h first." +#endif + #include <stdlib.h> #ifdef __cplusplus -- 2.53.0
