瀏覽代碼

* Fixed compiler warnings when UTF-8 S-Lang is not available.

tags/v0.99.beta14
Sam Hocevar sam 20 年之前
父節點
當前提交
2f878868e0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      caca/driver_slang.c

+ 2
- 0
caca/driver_slang.c 查看文件

@@ -378,6 +378,7 @@ static void slang_init_palette(void)


static void slang_write_utf32(uint32_t c) static void slang_write_utf32(uint32_t c)
{ {
#ifdef HAVE_SLSMG_UTF8_ENABLE
static const uint8_t mark[7] = static const uint8_t mark[7] =
{ {
0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC
@@ -385,6 +386,7 @@ static void slang_write_utf32(uint32_t c)


char buf[10], *parser; char buf[10], *parser;
int bytes; int bytes;
#endif


if(c < 0x80) if(c < 0x80)
{ {


Loading…
取消
儲存