llvm-project
b84ea71e - [Hexagon] Fix B0 macro conflict between hexagon_types.h and termios.h (#184539)

Commit
43 days ago
[Hexagon] Fix B0 macro conflict between hexagon_types.h and termios.h (#184539) POSIX termios.h defines `#define B0 0000000` for baud rate 0. This conflicts with the B0() member functions in hexagon_types.h vector classes, causing compilation failures when both headers are included. Use #pragma push_macro/pop_macro to save, undefine, and restore B0 around the class definitions so the header is safe to use alongside termios.h without losing the macro afterward. Fixes #183815
Author
Parents
Loading