[F] Fixed compilation errors
This commit is contained in:
		@@ -173,7 +173,7 @@ void custom_border_style_example(void)
 | 
			
		||||
void colorfull_table(void)
 | 
			
		||||
{
 | 
			
		||||
#if defined(FT_HAVE_WCHAR)
 | 
			
		||||
 | 
			
		||||
    {
 | 
			
		||||
        setlocale(LC_CTYPE, "");
 | 
			
		||||
 | 
			
		||||
        ft_table_t *table = ft_create_table();
 | 
			
		||||
@@ -230,12 +230,13 @@ void colorfull_table(void)
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        ft_destroy_table(table);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if defined(FT_HAVE_UTF8)
 | 
			
		||||
 | 
			
		||||
    table = ft_create_table();
 | 
			
		||||
    {
 | 
			
		||||
        ft_table_t *table = ft_create_table();
 | 
			
		||||
        ft_set_border_style(table, FT_NICE_STYLE);
 | 
			
		||||
        ft_set_cell_prop(table, 0, FT_ANY_COLUMN, FT_CPROP_ROW_TYPE, FT_ROW_HEADER);
 | 
			
		||||
 | 
			
		||||
@@ -282,13 +283,14 @@ void colorfull_table(void)
 | 
			
		||||
        ft_set_tbl_prop(table, FT_TPROP_LEFT_MARGIN, 10);
 | 
			
		||||
 | 
			
		||||
        const char *table_str = ft_to_u8string(table);
 | 
			
		||||
    if (table_wstr) {
 | 
			
		||||
        if (table_str) {
 | 
			
		||||
            printf("Table:\n%s\n\n ", table_str);
 | 
			
		||||
        } else {
 | 
			
		||||
            printf("Table conversion failed !!!\n ");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        ft_destroy_table(table);
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user