[waffle] [PATCH 15/33] c99: use strerror_s over strerror_r under Windows

Chad Versace chad.versace at linux.intel.com
Wed Jul 16 21:36:00 PDT 2014


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

This patch is
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

> + */
> +#if defined(_WIN32)
> +#define strerror_r(errno,buf,len) strerror_s(buf,len,errno)
> +#endif





More information about the waffle mailing list