* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.

This commit is contained in:
Paul Eggert 2013-06-21 13:27:13 -07:00
parent fbe9e0b9fb
commit b33a2a6feb
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,8 @@
2013-06-21 Paul Eggert <eggert@cs.ucla.edu>
Use C99-style flexible array members if available.
* ebrowse.c (struct member, struct alias, struct sym):
* ebrowse.c: Include <stddef.h>, for offsetof.
(struct member, struct alias, struct sym):
Use FLEXIBLE_ARRAY_MEMBER.
(add_sym, add_member, make_namespace, register_namespace_alias):
Use offsetof (struct, flex_array_member), not sizeof (struct), as

View file

@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>