On 17/07/14 05:36, Chad Versace wrote: > On 07/07/2014 10:28 AM, Emil Velikov wrote: > >> +/* >> + * strerror_r (strictly speaking not C99) > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > You documented what's wrong with defining strerror_r in a C99 > compatibility header. But it would be nice to also document what's > *right*. Maybe say "Not in C99, but in POSIX.1-2001.". > > Oh... I'm nit-picking. > /me shuts up and takes the code > No worries. My intent was to avoid explaining the whole history behind strerror_r - XSI-compliant or not, vs GNU-specific one. I'll add a small note in there that is slightly more useful.
-Emil > This patch is > Reviewed-by: Chad Versace <[email protected]> > >> + */ >> +#if defined(_WIN32) >> +#define strerror_r(errno,buf,len) strerror_s(buf,len,errno) >> +#endif > > > _______________________________________________ waffle mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/waffle

