Remove GCC extension syntax
This commit is contained in:
parent
75c6b0ab28
commit
4fe755854f
|
@ -1236,14 +1236,6 @@ void IPC2581_PLUGIN::addLayerAttributes( wxXmlNode* aNode, PCB_LAYER_ID aLayer )
|
||||||
{
|
{
|
||||||
switch( aLayer )
|
switch( aLayer )
|
||||||
{
|
{
|
||||||
case F_Cu ... B_Cu:
|
|
||||||
addAttribute( aNode, "layerFunction", "CONDUCTOR" );
|
|
||||||
addAttribute( aNode, "polarity", "POSITIVE" );
|
|
||||||
addAttribute( aNode, "side",
|
|
||||||
aLayer == F_Cu ? "TOP"
|
|
||||||
: aLayer == B_Cu ? "BOTTOM"
|
|
||||||
: "INTERNAL" );
|
|
||||||
break;
|
|
||||||
case F_Adhes:
|
case F_Adhes:
|
||||||
case B_Adhes:
|
case B_Adhes:
|
||||||
addAttribute( aNode, "layerFunction", "GLUE" );
|
addAttribute( aNode, "layerFunction", "GLUE" );
|
||||||
|
@ -1305,6 +1297,16 @@ void IPC2581_PLUGIN::addLayerAttributes( wxXmlNode* aNode, PCB_LAYER_ID aLayer )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
if( IsCopperLayer( aLayer ) )
|
||||||
|
{
|
||||||
|
addAttribute( aNode, "layerFunction", "CONDUCTOR" );
|
||||||
|
addAttribute( aNode, "polarity", "POSITIVE" );
|
||||||
|
addAttribute( aNode, "side",
|
||||||
|
aLayer == F_Cu ? "TOP"
|
||||||
|
: aLayer == B_Cu ? "BOTTOM"
|
||||||
|
: "INTERNAL" );
|
||||||
|
}
|
||||||
|
|
||||||
break; // Do not handle other layers
|
break; // Do not handle other layers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue