[SPEC2DEF]: Display the -private exports warning *only* when making import libs.

CORE-8445 #comment -private warning only displayed for import libs.

svn path=/trunk/; revision=66199
This commit is contained in:
Hermès Bélusca-Maïto 2015-02-07 21:42:26 +00:00
parent cfcdf14cef
commit 41180fb6b0

View file

@ -1043,7 +1043,7 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
return -1;
}
if (!gbNotPrivateNoWarn && !(exp.uFlags & FL_PRIVATE))
if (!gbNotPrivateNoWarn && gbImportLib && !(exp.uFlags & FL_PRIVATE))
{
for (i = 0; i < ARRAYSIZE(astrShouldBePrivate); i++)
{