[Mesa-dev] [PATCH 7/9] egl: Don't attempt to redefine stdint.h types with VS 2013.

Jose Fonseca jfonseca at vmware.com
Fri May 2 14:02:27 PDT 2014



----- Original Message -----
> On Fri, May 2, 2014 at 10:11 AM, <jfonseca at vmware.com> wrote:
> 
> > From: José Fonseca <jfonseca at vmware.com>
> >
> > Just include stdint.h.
> > ---
> >  src/egl/main/eglcompiler.h | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h
> > index 53dab54..5ea83d6 100644
> > --- a/src/egl/main/eglcompiler.h
> > +++ b/src/egl/main/eglcompiler.h
> > @@ -37,7 +37,8 @@
> >  /**
> >   * Get standard integer types
> >   */
> > -#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
> > +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
> > +    (defined(_MSC_VER) && _MSC_VER >= 1600)
> >
> 
> VS 2010 is where the support for <stdint.h> beings. This can be verified by
> a quick Google search.

Actually, "_MSC_VER >= 1600" is VS 2010.  So only the patch subject needs updating.

Jose


More information about the mesa-dev mailing list