[Mesa-dev] [PATCH 2/2] mesa: use strdup() instead of _mesa_strdup()
Emil Velikov
emil.l.velikov at gmail.com
Wed Mar 11 11:04:58 PDT 2015
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
More information about the mesa-dev
mailing list