Skip to content

Commit 86bb7ae

Browse files
committed
Closes #53
1 parent a09d00f commit 86bb7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaAttr.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ void Sema::ActOnPragmaMSAllocText(
797797
IdentifierInfo *II;
798798
SourceLocation Loc;
799799
std::tie(II, Loc) = Function;
800-
800+
#ifndef _WIN32
801801
DeclarationName DN(II);
802802
NamedDecl *ND = LookupSingleName(TUScope, DN, Loc, LookupOrdinaryName);
803803
if (!ND) {
@@ -815,7 +815,7 @@ void Sema::ActOnPragmaMSAllocText(
815815
Diag(Loc, diag::err_pragma_alloc_text_c_linkage);
816816
return;
817817
}
818-
818+
#endif
819819
FunctionToSectionMap[II->getName()] = std::make_tuple(Section, Loc);
820820
}
821821
}

0 commit comments

Comments
 (0)