Changeset e1c0a5c02b0d1a564aba82c4e133b5e000c5a700
- Timestamp:
- 24/10/03 16:13:59
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1067004839 +0000
- git-parent:
[f581e336a959ce4c1b1d0fe7e004fcce7953df3d]
- git-author:
- Sam Hocevar <sam@videolan.org> 1067004839 +0000
- Message:
- modules/misc/freetype.c: Compilation fixes.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9ed7b9f |
re1c0a5c |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002, 2003 VideoLAN |
|---|
| 5 | | * $Id: freetype.c,v 1.26 2003/10/24 11:28:57 sam Exp $ |
|---|
| | 5 | * $Id: freetype.c,v 1.27 2003/10/24 14:13:59 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> |
|---|
| … | … | |
| 32 | 32 | #include <osd.h> |
|---|
| 33 | 33 | #include <math.h> |
|---|
| 34 | | |
|---|
| | 34 | |
|---|
| | 35 | #ifdef HAVE_ERRNO_H |
|---|
| | 36 | # include <errno.h> |
|---|
| | 37 | #endif |
|---|
| | 38 | |
|---|
| 35 | 39 | #include <ft2build.h> |
|---|
| 36 | 40 | #include FT_FREETYPE_H |
|---|
| … | … | |
| 720 | 724 | goto error; |
|---|
| 721 | 725 | } |
|---|
| 722 | | { |
|---|
| 723 | | char *p_in_buffer; |
|---|
| 724 | | uint32_t *p_out_buffer; |
|---|
| | 726 | |
|---|
| | 727 | { |
|---|
| | 728 | char *p_in_buffer, *p_out_buffer; |
|---|
| 725 | 729 | int i_in_bytes, i_out_bytes, i_out_bytes_left, i_ret; |
|---|
| 726 | 730 | i_in_bytes = strlen( psz_string ); |
|---|
| … | … | |
| 728 | 732 | i_out_bytes_left = i_out_bytes; |
|---|
| 729 | 733 | p_in_buffer = psz_string; |
|---|
| 730 | | p_out_buffer = p_unicode_string; |
|---|
| 731 | | i_ret = iconv( iconv_handle, &p_in_buffer, &i_in_bytes, (char**)&p_out_buffer, &i_out_bytes_left ); |
|---|
| | 734 | p_out_buffer = (char *)p_unicode_string; |
|---|
| | 735 | i_ret = iconv( iconv_handle, &p_in_buffer, &i_in_bytes, &p_out_buffer, &i_out_bytes_left ); |
|---|
| 732 | 736 | if( i_in_bytes ) |
|---|
| 733 | 737 | { |
|---|
| … | … | |
| 735 | 739 | goto error; |
|---|
| 736 | 740 | } |
|---|
| 737 | | *p_out_buffer = 0; |
|---|
| | 741 | *(uint32_t*)p_out_buffer = 0; |
|---|
| 738 | 742 | i_string_length = ( i_out_bytes - i_out_bytes_left ) / sizeof(uint32_t); |
|---|
| 739 | 743 | } |
|---|