forked from minhngoc25a/freetype2
* include/freetype/config/ftstdlib.h: Include `stddef.h'.
(ft_ptrdiff_t): Define. * include/freetype/fttypes.h (FT_PtrDist): Use `ft_ptrdiff_t'. * src/cid/cidload.c (cid_parse_dict), src/type1/t1load.c (parse_dict): Fix compiler warning.
This commit is contained in:
parent
685dd4f7b8
commit
023a4bf3be
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2004-10-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* include/freetype/config/ftstdlib.h: Include `stddef.h'.
|
||||
(ft_ptrdiff_t): Define.
|
||||
|
||||
* include/freetype/fttypes.h (FT_PtrDist): Use `ft_ptrdiff_t'.
|
||||
|
||||
* src/cid/cidload.c (cid_parse_dict), src/type1/t1load.c
|
||||
(parse_dict): Fix compiler warning.
|
||||
|
||||
2004-10-11 Joshua Neal <jneal@csdaily.com>
|
||||
|
||||
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Check for pointer
|
||||
|
|
|
@ -33,6 +33,11 @@
|
|||
#define __FTSTDLIB_H__
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define ft_ptrdiff_t ptrdiff_t
|
||||
|
||||
|
||||
/**********************************************************************/
|
||||
/* */
|
||||
/* integer limits */
|
||||
|
|
|
@ -325,7 +325,7 @@ FT_BEGIN_HEADER
|
|||
/* largest _signed_ integer type used to express the distance */
|
||||
/* between two pointers. */
|
||||
/* */
|
||||
typedef size_t FT_PtrDist;
|
||||
typedef ft_ptrdiff_t FT_PtrDist;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
|
|
@ -324,8 +324,8 @@
|
|||
if ( !name )
|
||||
break;
|
||||
|
||||
if ( cur[0] == name[0] &&
|
||||
len == ft_strlen( (const char*)name ) )
|
||||
if ( cur[0] == name[0] &&
|
||||
len == (FT_PtrDist)ft_strlen( (const char*)name ) )
|
||||
{
|
||||
FT_PtrDist n;
|
||||
|
||||
|
|
|
@ -1820,9 +1820,9 @@
|
|||
if ( !name )
|
||||
break;
|
||||
|
||||
if ( cur[0] == name[0] &&
|
||||
len == ft_strlen( (const char *)name ) &&
|
||||
ft_memcmp( cur, name, len ) == 0 )
|
||||
if ( cur[0] == name[0] &&
|
||||
len == (FT_PtrDist)ft_strlen( (const char *)name ) &&
|
||||
ft_memcmp( cur, name, len ) == 0 )
|
||||
{
|
||||
/* We found it -- run the parsing callback! */
|
||||
/* We only record the first instance of any */
|
||||
|
|
Loading…
Reference in New Issue