I&#x27;ve been using <i>deheader</i> (<a href="http:&#x2F;&#x2F;www.catb.org&#x2F;esr&#x2F;deheader&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.catb.org&#x2F;esr&#x2F;deheader&#x2F;</a>) for this.<p>It detects unnecessary inclusions and also warns about missing headers required for cross-platform compatibility.