Skip to content

Liblouis doesn't build with clang on Windows #1889

@LeonarddeR

Description

@LeonarddeR
include\liblouis\liblouis\compileTranslationTable.c(1272,8): error: unknown type name 'bool'                            
 1272 | static bool                                                                                                     
      |        ^                                                                                                        
include\liblouis\liblouis\compileTranslationTable.c(1273,39): error: unknown type name 'bool'                           
 1273 | isMatchPatternEscape(unsigned int ch, bool inMatchPattern) {                                                    
      |                                       ^                                                                         
include\liblouis\liblouis\compileTranslationTable.c(1279,3): error: unknown type name 'bool'                            
 1279 |                 bool inMatchPattern) {                                                                          
      |                 ^                                                                                               
include\liblouis\liblouis\compileTranslationTable.c(1405,49): error: use of undeclared identifier 'false'               
 1405 |         return parseCharsInternal(file, result, token, false);                                                  
      |                                                        ^                                                        
include\liblouis\liblouis\compileTranslationTable.c(1410,49): error: use of undeclared identifier 'true'; did you mean  
      'free'?                                                                                                           
 1410 |         return parseCharsInternal(file, result, token, true);                                                   
      |                                                        ^~~~                                                     
      |                                                        free                                                     

Introduced by 0ed3172
I fixed this by adding #include <stdbool.h>

Metadata

Metadata

Assignees

No one assigned

    Labels

    build systemAnything related to Autotools, the Windows build, CI, Fuzz, etc.windowsRelated to Microsoft Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions