[SM-Discuss] glibc question also....

Thomas Orgis thomas-forum at orgis.org
Wed Oct 24 03:19:08 EDT 2007


Am Tue, 23 Oct 2007 21:35:14 -0700
schrieb "David Brown" <dmlb2000 at gmail.com>: 

> You could make a patch to define INT_MAX in growisofs.c like this
> 
> #include <linux/cdrom.h>
> #define INT_MAX ((int)(~0U>>1))

Why not using
#include <limits.h>

That's where INT_MAX is defined for userspace.
I guess linux/cdrom.h should use this...?
At least with glibc that's a standard header... and cdrom.h for sure should not define a conflicting INT_MAX itself or something.


Thomas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20071024/dc701d57/attachment.bin 


More information about the SM-Discuss mailing list