Hacker News new | past | comments | ask | show | jobs | submit login

Redefining a keyword via macro violates the C++ standard:

> Nor shall such a translation unit define macros for names lexically identical to keywords.

https://stackoverflow.com/questions/9109377/is-it-legal-to-r...




Lucky for them, it's a fully custom OS that doesn't follow the standard :)


They don't make the compiler. GCC in very many places substitutes standard library names with intrinsics for the purposes of optimization or static analysis. I'm not aware of it doing so for ssize, but in principle this is a bad idea.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: