Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anttiok
on Oct 9, 2013
|
parent
|
context
|
favorite
| on:
Why does the C preprocessor interpret the word “li...
If you're in the habit of writing "struct sockaddr_in sin;", you'll probably be tempted to write "struct sockaddr_un sun;". Just don't expect that code to compile on Solaris.
robmcm1982
on Oct 9, 2013
[–]
Is that just hardcoded into the preprocessor itself? Or is part of ANSI C. Wondering if the MS C++ compiler will do this well.
simias
on Oct 9, 2013
|
parent
[–]
It's not and can be tuned using compiler options as mentioned in TFA. Definitely not standard.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: