uchar.h file not found on OS X 10.9

后端 未结 2 1508
-上瘾入骨i
-上瘾入骨i 2021-02-07 14:26

I\'m under the impression my C compiler supports C11 since it accepts the -std=c11 flag,

$ cc --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.         


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 14:54

    Apple's macOS (up to and including Catalina 10.15) has neither nor . It doesn't have the 4 functions declared in or any other functions using char16_t or char32_t.

    Code ported to a Mac that needs those facilities must either be rewritten to avoid using them (at least on macOS) or be supported by conditionally compiled code that provides the facilities it needs on macOS.

提交回复
热议问题