Browse Source

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

tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
2f878868e0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      caca/driver_slang.c

+ 2
- 0
caca/driver_slang.c View File

@@ -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…
Cancel
Save