←back to thread

271 points mithcs | 2 comments | | HN request time: 0s | source
Show context
dboon ◴[] No.45954041[source]
Nice, but if the intention is portability my experience has unfortunately been that you pretty much have to stick to C99. MSVC’s C compiler is rough, but pretty much necessary for actual cross platform. I have my own such header which has many, many things like the OP’s. As much as I would find it constantly useful, I don’t have a cleanup utility because of this.

But if you can stay out of MSVC world, awesome! You can do so much with a few preprocessor blocks in a header

replies(3): >>45954109 #>>45954162 #>>45954608 #
Maxatar ◴[] No.45954109[source]
MSVC now supports C17.
replies(2): >>45954583 #>>45954706 #
1. atiedebee ◴[] No.45954583[source]
Does it support C99 with VLAs yet?
replies(1): >>45958557 #
2. hgs3 ◴[] No.45958557[source]
It supports C99 minus VLAs. Worth noting that only C99 mandates VLAs. They are optional in C11, C17, and C23.