From: Matthias H. <mh...@su...> - 2005-07-13 15:33:45
|
On Jul 13, 05 09:16:32 -0600, Brian Paul wrote: > >find a patch attached that fixes all remaining strict-aliasing problems > >when compiling Mesa with gcc 4 (at least for me). > > Are you sure you've got the #ifdef logic correct? I just copied the one that was already present and didn't think much about it. > #if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_fbconfig) > typedef void *fbc_t; > #else > typedef GLXFBConfigSGIX fbc_t; > #endif > > I would expect that the proper test would be: > > #if defined(GLX_SGIX_fbconfig) > typedef GLXFBConfigSGIX fbc_t; > #else > typedef void *fbc_t; > #endif I would expect that as well. But I wanted a minimal invasive change. Feel free to change this ;) > > I'd probably also replace 'fbc_t' with 'fbconfig_t' to make it more > readable. That's perfectly fine for me. Thanks Matthias -- Matthias Hopf <mh...@su...> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ ma...@ms... Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de |