declare _xdg_utf8_skip as extern to prevent multiple definitions.

Sun Feb  8 19:05:16 2004  Manish Singh  <yosh@gimp.org>

        * xdgmimeint.h: declare _xdg_utf8_skip as extern to prevent multiple
        definitions.
This commit is contained in:
Manish Singh 2004-02-09 03:06:22 +00:00 committed by Manish Singh
parent ef451a95ed
commit 8295d6982b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Feb 8 19:05:16 2004 Manish Singh <yosh@gimp.org>
* xdgmimeint.h: declare _xdg_utf8_skip as extern to prevent multiple
definitions.
Wed Jan 21 09:33:13 2004 Jonathan Blandford <jrb@gnome.org>
* libgnomevfs/xdgmimeglob.c:

View File

@ -52,7 +52,7 @@ typedef unsigned int xdg_uint32_t;
(((xdg_uint32_t)(val) & 0x000000FFU) << 24))
/* UTF-8 utils
*/
const char *const _xdg_utf8_skip;
extern const char *const _xdg_utf8_skip;
#define _xdg_utf8_next_char(p) (char *)((p) + _xdg_utf8_skip[*(unsigned char *)(p)])
#define _xdg_utf8_char_size(p) (int) (_xdg_utf8_skip[*(unsigned char *)(p)])