<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - st_nir.h:34: error: redefinition of typedef ‘nir_shader’"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96235#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - st_nir.h:34: error: redefinition of typedef ‘nir_shader’"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96235">bug 96235</a>
from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
<pre>Using the forward declaration allows us to avoid including the nir.h header,
thus keeping headers include chain shorter and less things get rebuild as a
result.
On the other hand, typedef redefinition is a C11 feature (iirc) which we cannot
enforce atm. There was a lengthy discussion about killing off the typedefs in
NIR, as they made sense in the C++ GLSL but not the C based NIR.
Don't recall the conclusion of the thread, but fwiw I'm for killing the
typedefs thus being able to build mesa with GCC 4.x series and (in due time)
killing off the unneeded includes of nir*.h and replacing them with fwd
declarations.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>