[XviD-devel] Watcom compiler

Christoph Lampert chl at math.uni-bonn.de
Mon Feb 10 00:26:27 CET 2003


On Sun, 9 Feb 2003, Edouard Gomez wrote:

> Christoph Lampert (chl at math.uni-bonn.de) wrote:
> >
> > XVID is ANSI C, but I guess only after the compiler passed through 
> > portab.h in which it fails e.g. for IRIX cc because the compiler is
> > unknown. 
> 
> Ironic ? 

No, simply a little tired, sorry. 

> ok ok ok christoph, try  now, i commited a patch that should be
> a lot more "unknown compiler" friendly.  Of course if you go through the
> unknown  compiler #ifdef  paths, then  all stuff  is generic...  so it's
> probably wrong for your architecture  but i can't do better as alignment
> and others macros depends on the inline assembler and so on...

I was just a little puzzled because on MIPS there is no inline-assembler
anyway and you have this nice "ARCH_IS_GENERIC" define etc, but then 
in portab.h everything except gcc, MSVC++ and icc is simply kicked out. 

I search a little at google and found that __sgi is the Define I had to
check for. Adding this in the GCC/ICC section worked as well, but I really
prefer a "generic compiler" section.


> > Although they simply are part of  C99 as inttypes.h  ! 
> 
> ANSI C  is ISO C89,  so relying  on this, is  not very ANSI  C compliant
> ...  anyway, i  commited with  the same  patch an  #include <inttypes.h>
> instead of the previous definitions.

If we don't want to rely on C99, I'll have to change a few lines in new GMC. 
Good to know...

:-) 
 


gruel 




More information about the XviD-devel mailing list