[Mesa-dev] [PATCH 1/4] mesa: Add an ifndef guard around the definition of the INLINE macro
Paul Berry
stereotype441 at gmail.com
Mon Jul 18 14:28:52 PDT 2011
On 18 July 2011 11:58, Brian Paul <brianp at vmware.com> wrote:
> On 07/18/2011 12:37 PM, Paul Berry wrote:
>>
>> Several headers redundantly define the INLINE macro. Adding this
>> guard prevents the compiler from complaining about macro redefinition.
>
> Other Mesa headers? Or system headers? Or?
Other Mesa headers. I found definitions of INLINE in four header files:
src/egl/main/eglcompiler.h
src/gallium/include/pipe/p_compiler.h
src/mapi/mapi/u_compiler.h
src/mesa/main/compiler.h
Ideally we should put all of our definitions of INLINE in one place,
but I was doing enough in other parts of the patch series that I
didn't want to shave that particular yak :)
I'll update the commit comment to clarify.
More information about the mesa-dev
mailing list