Mercurial > gnulib
changeset 39791:e57100ecba99
scratch_buffer: Fix include file.
Reported by Reuben Thomas <rrt@sc3d.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
* lib/scratch_buffer.h: Include <libc-config.h> first. Add
double-inclusion guard.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 18 Aug 2018 21:35:11 +0200 |
parents | 794c87b16901 |
children | 3c3833038ff8 |
files | ChangeLog lib/scratch_buffer.h |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Aug 18 21:31:30 2018 +0200 +++ b/ChangeLog Sat Aug 18 21:35:11 2018 +0200 @@ -1,3 +1,11 @@ +2018-08-18 Bruno Haible <bruno@clisp.org> + + scratch_buffer: Fix include file. + Reported by Reuben Thomas <rrt@sc3d.org> in + <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>. + * lib/scratch_buffer.h: Include <libc-config.h> first. Add + double-inclusion guard. + 2018-08-18 Bruno Haible <bruno@clisp.org> glob-h: Revert Paul Eggert's revert.
--- a/lib/scratch_buffer.h Sat Aug 18 21:31:30 2018 +0200 +++ b/lib/scratch_buffer.h Sat Aug 18 21:35:11 2018 +0200 @@ -1,4 +1,11 @@ +#ifndef _GL_SCRATCH_BUFFER_H +#define _GL_SCRATCH_BUFFER_H + +#include <libc-config.h> + #define __libc_scratch_buffer_grow gl_scratch_buffer_grow #define __libc_scratch_buffer_grow_preserve gl_scratch_buffer_grow_preserve #define __libc_scratch_buffer_set_array_size gl_scratch_buffer_set_array_size #include <malloc/scratch_buffer.h> + +#endif /* _GL_SCRATCH_BUFFER_H */