[Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

Brian Paul brian.e.paul at gmail.com
Fri Mar 6 11:03:50 PST 2015


On Fri, Mar 6, 2015 at 11:26 AM, Brian Paul <brian.e.paul at gmail.com> wrote:

> On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov <emil.l.velikov at gmail.com>
> wrote:
>
>> Used for aligned_alloc and other C11 functions missing from the header.
>>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>  include/c11_stdlib.h | 118 ++++++++++++++++++++++++++++++
>
>
> I wonder if this should be include/c11/stdlib.h instead.
>
> I also wonder if I should have put c99_math.h in c99/math.h  Jose followed
> my pattern with c99_alloca.h
>
> We should probably be more consistent about this.  What do you think?
>

Maybe scratch that, actually.  There's a distinction to be made between
wrapper headers and replacement headers.  c99_math.h is a wrapper for
math.h while c99/*.h are replacements for missing headers on MSVC.

So c11_stdlib.h is probably the right choice.

-Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150306/feaa8c9c/attachment.html>


More information about the mesa-dev mailing list