Remove GCC extension syntax

This commit is contained in:
Seth Hillbrand 2023-11-26 16:46:51 -08:00
parent 75c6b0ab28
commit 4fe755854f
1 changed files with 10 additions and 8 deletions

View File

@ -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
} }
} }