@@ -537,7 +537,7 @@ FuncDeclaration *buildXopEquals(StructDeclaration *sd, Scope *sc)
537537 Parameters * parameters = new Parameters ;
538538 parameters -> push (new Parameter (STCref | STCconst , sd -> type , Id ::p , NULL ));
539539 parameters -> push (new Parameter (STCref | STCconst , sd -> type , Id ::q , NULL ));
540- TypeFunction * tf = new TypeFunction (parameters , Type ::tbool , 0 , LINKd );
540+ TypeFunction * tf = new TypeFunction (parameters , Type ::tbool , 0 , LINKc );
541541
542542 Identifier * id = Id ::xopEquals ;
543543 FuncDeclaration * fop = new FuncDeclaration (declLoc , Loc (), id , STCstatic , tf );
@@ -551,7 +551,7 @@ FuncDeclaration *buildXopEquals(StructDeclaration *sd, Scope *sc)
551551 unsigned errors = global .startGagging (); // Do not report errors
552552 Scope * sc2 = sc -> push ();
553553 sc2 -> stc = 0 ;
554- sc2 -> linkage = LINKd ;
554+ sc2 -> linkage = LINKc ;
555555
556556 fop -> semantic (sc2 );
557557 fop -> semantic2 (sc2 );
@@ -657,25 +657,21 @@ FuncDeclaration *buildXopCmp(StructDeclaration *sd, Scope *sc)
657657 Parameters * parameters = new Parameters ;
658658 parameters -> push (new Parameter (STCref | STCconst , sd -> type , Id ::p , NULL ));
659659 parameters -> push (new Parameter (STCref | STCconst , sd -> type , Id ::q , NULL ));
660- TypeFunction * tf = new TypeFunction (parameters , Type ::tint32 , 0 , LINKd );
660+ TypeFunction * tf = new TypeFunction (parameters , Type ::tint32 , 0 , LINKc );
661661
662662 Identifier * id = Id ::xopCmp ;
663663 FuncDeclaration * fop = new FuncDeclaration (declLoc , Loc (), id , STCstatic , tf );
664664 fop -> generated = true;
665665 Expression * e1 = new IdentifierExp (loc , Id ::p );
666666 Expression * e2 = new IdentifierExp (loc , Id ::q );
667- #ifdef IN_GCC
668667 Expression * e = new CallExp (loc , new DotIdExp (loc , e1 , Id ::cmp ), e2 );
669- #else
670- Expression * e = new CallExp (loc , new DotIdExp (loc , e2 , Id ::cmp ), e1 );
671- #endif
672668
673669 fop -> fbody = new ReturnStatement (loc , e );
674670
675671 unsigned errors = global .startGagging (); // Do not report errors
676672 Scope * sc2 = sc -> push ();
677673 sc2 -> stc = 0 ;
678- sc2 -> linkage = LINKd ;
674+ sc2 -> linkage = LINKc ;
679675
680676 fop -> semantic (sc2 );
681677 fop -> semantic2 (sc2 );
0 commit comments