OSDN Git Service

Fix build failure (conflicting decl of strnlen) and clean up
authorJim Meyering <jim@meyering.net>
Thu, 31 May 2007 07:04:01 +0000 (09:04 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 31 May 2007 08:41:52 +0000 (10:41 +0200)
commita7ed765f988d6b724a76a04e34f768cf52f4ea98
treeb992bebe8fc853f6b22b50223f46037fc2cb6727
parentb4c53f6d1474639e464d43d478bc4d41ac54dd52
Fix build failure (conflicting decl of strnlen) and clean up

* parted/strlist.h: Include <config.h> first.
[!ENABLE_NLS]: Define wchar_t to char here, too, since we no
longer include "strlist.h" after the definition in table.c.
* parted/table.c: Include <wchar.h> and <string.h> unconditionally,
and before wchar_t redefinition.
Hoist inclusions of xalloc.h and strlist.h, too.
Remove wcwidth and strnlen declarations, since they're guaranteed
to be in the gnulib-supplied-if-needed headers.
parted/strlist.h
parted/table.c