logoalt Hacker News

doogliusyesterday at 4:19 PM1 replyview on HN

The preceding comment indicates that the intent is to support other compilers. I think a better approach is to define __glibc_attribute__ based on compiler support and to stick to that within glibc since there's no reason to think that another compiler's attributes have the same semantics as GNU C's.


Replies

rurbanyesterday at 7:47 PM

That ship sailed already. You simply have to mimic gcc.

Which is at least better than with MSVC, where they did everything differently, and only half of it.