diff options
author | Werner Lemberg <wl@gnu.org> | 2006-04-29 07:31:16 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2006-04-29 07:31:16 +0000 |
commit | 8fe6539026cf87a8bcf9a23d54cd9d48176bc880 (patch) | |
tree | db74ca093a899230720984b16f590ff3cffc8d83 /src/cff | |
parent | 50ef72b6e3a33cd70c65676923f42fb75333831e (diff) | |
download | freetype2-8fe6539026cf87a8bcf9a23d54cd9d48176bc880.tar.gz |
Further C library abstraction. Based on a patch from
msn2@bidyut.com.
* include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE,
ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc,
ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for
C library functions. Update all users accordingly (and catch some
other places where the C library function was used instead of the
wrapper functions).
* src/base/ftsystem.c: Don't include stdio.h and stdlib.h.
* src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't
include malloc.h.
Diffstat (limited to 'src/cff')
-rw-r--r-- | src/cff/cffobjs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c index 56c1fc0f8..2d1204e38 100644 --- a/src/cff/cffobjs.c +++ b/src/cff/cffobjs.c @@ -612,8 +612,8 @@ /* double check */ if ( !(flags & FT_STYLE_FLAG_BOLD) && cffface->style_name ) - if ( !strncmp( cffface->style_name, "Bold", 4 ) || - !strncmp( cffface->style_name, "Black", 5 ) ) + if ( !ft_strncmp( cffface->style_name, "Bold", 4 ) || + !ft_strncmp( cffface->style_name, "Black", 5 ) ) flags |= FT_STYLE_FLAG_BOLD; cffface->style_flags = flags; |