Skip to content

zig cc -municode does not define UNICODE macro #21978

@alexrp

Description

@alexrp
❯ cat test.c
int wmain() {}
#ifdef UNICODE
#error UNICODE is defined
#endif
❯ clang --target=x86_64-windows-gnu -municode test.c
test.c:3:2: error: UNICODE is defined
    3 | #error UNICODE is defined
      |  ^
1 error generated.
❯ zig cc --target=x86_64-windows-gnu -municode test.c
❯

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft Windowszig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions