Commit 3dbae0b8 authored by Marco Serantoni's avatar Marco Serantoni

MacOSX: PRIO_MAX already defined is Maximum Process Priority in (sys/resource.h)

parent 9b77f2a4
...@@ -380,17 +380,17 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer ) ...@@ -380,17 +380,17 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer )
// Define a priority (from low to high) to sort labels: // Define a priority (from low to high) to sort labels:
// NET_PINLABEL and NET_GLOBLABEL are global labels // NET_PINLABEL and NET_GLOBLABEL are global labels
// and priority >= PRIO_MAX-1 is for global connections // and priority >= NET_PRIO_MAX-1 is for global connections
// ( i.e. for labels that are not prefixed by a sheetpath) // ( i.e. for labels that are not prefixed by a sheetpath)
#define PRIO_MAX 4 #define NET_PRIO_MAX 4
int priority_order[PRIO_MAX+1] = int priority_order[NET_PRIO_MAX+1] =
{ NET_ITEM_UNSPECIFIED, NET_LABEL, NET_HIERLABEL, NET_PINLABEL, NET_GLOBLABEL }; { NET_ITEM_UNSPECIFIED, NET_LABEL, NET_HIERLABEL, NET_PINLABEL, NET_GLOBLABEL };
NETLIST_OBJECT*item = aLabelItemBuffer[0]; NETLIST_OBJECT*item = aLabelItemBuffer[0];
// Calculate item priority (initial priority) // Calculate item priority (initial priority)
int item_priority = 0; int item_priority = 0;
for( unsigned ii = 0; ii <= PRIO_MAX; ii++ ) for( unsigned ii = 0; ii <= NET_PRIO_MAX; ii++ )
{ {
if ( item->m_Type == priority_order[ii] ) if ( item->m_Type == priority_order[ii] )
{ {
...@@ -404,7 +404,7 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer ) ...@@ -404,7 +404,7 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer )
NETLIST_OBJECT* candidate = aLabelItemBuffer[ii]; NETLIST_OBJECT* candidate = aLabelItemBuffer[ii];
// Calculate candidate priority // Calculate candidate priority
int candidate_priority = 0; int candidate_priority = 0;
for( unsigned ii = 0; ii <= PRIO_MAX; ii++ ) for( unsigned ii = 0; ii <= NET_PRIO_MAX; ii++ )
{ {
if ( candidate->m_Type == priority_order[ii] ) if ( candidate->m_Type == priority_order[ii] )
{ {
...@@ -425,7 +425,7 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer ) ...@@ -425,7 +425,7 @@ static NETLIST_OBJECT* FindBestNetName( NETLIST_OBJECT_LIST& aLabelItemBuffer )
// because the actual name is /sheetpath/label // because the actual name is /sheetpath/label
// and for a given path length, by alphabetic order // and for a given path length, by alphabetic order
if( item_priority >= PRIO_MAX-1 ) // global label or pin label if( item_priority >= NET_PRIO_MAX-1 ) // global label or pin label
{ // selection by alphabetic order: { // selection by alphabetic order:
if( candidate->m_Label.Cmp( item->m_Label ) < 0 ) if( candidate->m_Label.Cmp( item->m_Label ) < 0 )
item = candidate; item = candidate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment