[Scummvm-devel] Re: CVS: scummvm/sword1 screen.cpp,1.1,1.2

Max Horn max at quendi.de
Tue Dec 16 02:04:03 CET 2003


Am Dienstag, 16.12.03 um 07:20 Uhr schrieb Eugene Sandulenko:

> Update of /cvsroot/scummvm/scummvm/sword1
> In directory sc8-pr-cvs1:/tmp/cvs-serv23902
>
> Modified Files:
> 	screen.cpp
> Log Message:
>  o FreeBSD specifix fix. I am not sure it is applicable to every Unix
>
>
> Index: screen.cpp
> ===================================================================
> RCS file: /cvsroot/scummvm/scummvm/sword1/screen.cpp,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -d -r1.1 -r1.2
> --- screen.cpp	16 Dec 2003 02:09:25 -0000	1.1
> +++ screen.cpp	16 Dec 2003 06:20:16 -0000	1.2
> @@ -837,6 +837,11 @@
>      }
>  }
>
> +#ifdef __FreeBSD__
> +#define min(a,b) ((a) < (b) ? (a) : (b))
> +#define max(a,b) ((a) > (b) ? (a) : (b))
> +#endif
> +

Uhh, don't use min/max/abs - use MIN/MAX/ABS. Portability is why we 
define them in common/util.h :-)


Max





More information about the Scummvm-devel mailing list