mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 03:23:34 +08:00
[SPEC2DEF] Implement support for negated architecture
This is used by wine spec files.
This commit is contained in:
parent
d55ca68f7d
commit
7b2bb7ecc8
@ -1072,9 +1072,24 @@ ParseFile(char* pcStart, FILE *fileDest, unsigned *cExports)
|
||||
/* Look if we are included */
|
||||
do
|
||||
{
|
||||
int negated = 0, match = 0;
|
||||
|
||||
pc++;
|
||||
|
||||
/* Check for negated case */
|
||||
if (*pc == '!')
|
||||
{
|
||||
negated = 1;
|
||||
pc++;
|
||||
}
|
||||
|
||||
if (CompareToken(pc, pszArchString) ||
|
||||
CompareToken(pc, pszArchString2))
|
||||
{
|
||||
match = 1;
|
||||
}
|
||||
|
||||
if (match != negated)
|
||||
{
|
||||
included = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user