On 11/03/15 01:42, Brian Paul wrote:
> We were already using strdup() in various places in Mesa.  Get rid
> of the _mesa_strdup() wrapper.  All the callers pass a non-NULL
> argument so the NULL check isn't needed either.
Last time I've tried using strdup with MSVC there were a few warnings.
Iirc those were due to the function being part of the POSIX standard
rather than C89/99/etc.

I had to shut the compiler by adding the following define
_CRT_NONSTDC_NO_WARNINGS.

-Emil

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to