Re: [Mesa-dev] extern "C" sometimes in header files but not always..

2014-03-31 Thread Emil Velikov
On 31/03/14 11:55, Rogovin, Kevin wrote: > Hi, > > I was doing some experiments and had linking issues with C++ code and saw > that some Mesa header files have extern "C" wrappers and others do not. For > example running: > > $ find src/mesa/main -type f -name "*.h" -exec grep -H -E -o -c "e

Re: [Mesa-dev] extern "C" sometimes in header files but not always..

2014-03-31 Thread Brian Paul
On 03/31/2014 04:55 AM, Rogovin, Kevin wrote: Hi, I was doing some experiments and had linking issues with C++ code and saw that some Mesa header files have extern "C" wrappers and others do not. For example running: $ find src/mesa/main -type f -name "*.h" -exec grep -H -E -o -c "extern

[Mesa-dev] extern "C" sometimes in header files but not always..

2014-03-31 Thread Rogovin, Kevin
Hi, I was doing some experiments and had linking issues with C++ code and saw that some Mesa header files have extern "C" wrappers and others do not. For example running: $ find src/mesa/main -type f -name "*.h" -exec grep -H -E -o -c "extern \"C\"" {} \; | grep :0 | wc -l gives a result