.... Did we not learn anything from windows.h ...?
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3160.pdf
"Using a library version-test macro can help with backwards compatible code."
Good thing we added __STDC_VERSION_STDLIB_H__ in the standard recently, so we can test #if __STDC_VERSION_STDLIB_H__ > 202311L.
__STDC_VERSION_STDLIB_H__
#if __STDC_VERSION_STDLIB_H__ > 202311L
Still "min" and "max" are SUPER common variable names AND function names. This is gonna load up a shotgun and blow up a TON of code....!
min
max
Put it in stdminmax.h or something, maybe even stdstat.h and load up a helluva bunch of statistics functions to go with it.
stdminmax.h
stdstat.h
@thephd seems like at the very least they should be named something like “imin” or “dmin” to avoid conflict smh
Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!