6 ms·
You could just use macros or typedefs for the the (u)intXX_t types.
by kurtisc 9y ago
You could just use macros or typedefs for the the (u)intXX_t types.
- breadbox 9y agoAnd therein lies the issue. Everyone does just that, causing needless clashes. If you're writing a library, you can either switch back to the standard type names in your external header file, or you include the typedefs/macros there as well. The former choice ruins some of the point of having these types, and might even mask cross-platform issues. The latter runs the risk of clashing with the user's owns typedefs, or with another library writer's typedefs. (And god help you if exactly one library writer chose to do it via macros.)