Make OCR compile on intel mac with gcc 4 : PRIO_MAX seems to be a macro defined elsewhere.

This commit is contained in:
Hugo Clement 2006-07-03 17:43:34 +00:00
parent 785e1164c9
commit f633afac72
1 changed files with 11 additions and 8 deletions

View File

@ -1,8 +1,11 @@
/* /*
### -------------------------------------------------- ### ### -------------------------------------------------- ###
$Author: xtof $ $Author: hcl $
$Date: 2006/03/29 17:10:51 $ $Date: 2006/07/03 17:43:34 $
$Log: ocrRouter.c,v $ $Log: ocrRouter.c,v $
Revision 1.10 2006/07/03 17:43:34 hcl
Make OCR compile on intel mac with gcc 4 : PRIO_MAX seems to be a macro defined elsewhere.
Revision 1.9 2006/03/29 17:10:51 xtof Revision 1.9 2006/03/29 17:10:51 xtof
* gcc4 compatible : no cast like (Foo*)bar=foo; use bar=(Bar*)foo; * gcc4 compatible : no cast like (Foo*)bar=foo; use bar=(Bar*)foo;
@ -1048,23 +1051,23 @@ routingWindow(ocrRoutingDataBase * i_pDataBase, phfig_list * i_pPhFig)
// Ordonnancement les + PRIORITAIRES en premier // Ordonnancement les + PRIORITAIRES en premier
orderingSignals(i_pDataBase->SIGNAL, orderingSignals(i_pDataBase->SIGNAL,
//i_pDataBase->NB_SIGNAL, ORDER_PRIORITY_RANDOM); /*i_pDataBase->NB_SIGNAL, ORDER_PRIORITY_RANDOM);*/
i_pDataBase->NB_SIGNAL, ORDER_PRIORITY_CON); i_pDataBase->NB_SIGNAL, ORDER_PRIORITY_CON);
{ {
ocrNaturalInt PRIO_MAX = i_pDataBase->SIGNAL[0]->PRIORITY; ocrNaturalInt priority_max = i_pDataBase->SIGNAL[0]->PRIORITY;
if (PRIO_MAX > 8) if (priority_max > 8)
for (i = 0; i < i_pDataBase->NB_SIGNAL - 1; i++) for (i = 0; i < i_pDataBase->NB_SIGNAL - 1; i++)
if (i_pDataBase->SIGNAL[i]->PRIORITY == PRIO_MAX) { if (i_pDataBase->SIGNAL[i]->PRIORITY == priority_max) {
if (i_pDataBase->SIGNAL[i]->INTEXT == INTERNAL) { if (i_pDataBase->SIGNAL[i]->INTEXT == INTERNAL) {
display(LEVEL, DEBUG, display(LEVEL, DEBUG,
"o I Prio Max = %ld Sig = %ld Name = %s\n", "o I Prio Max = %ld Sig = %ld Name = %s\n",
PRIO_MAX, i, priority_max, i,
i_pDataBase->SIGNAL[i]->NAME); i_pDataBase->SIGNAL[i]->NAME);
} else } else
display(LEVEL, DEBUG, display(LEVEL, DEBUG,
"o E Prio Max = %ld Sig = %ld Name = %s\n", "o E Prio Max = %ld Sig = %ld Name = %s\n",
PRIO_MAX, i, priority_max, i,
i_pDataBase->SIGNAL[i]->NAME); i_pDataBase->SIGNAL[i]->NAME);
} }
} }