Bug#493639: linux-libc-dev: <linux/cdrom.h> does not include in any way definition of INT_MAX
Package: linux-libc-dev
Version: 2.6.25-7
Severity: normal
When compiling a program I noticed that <linux/cdrom.h> uses macro INT_MAX
but does not include a definition of it in any way. I think that the rule of
thumb is that the include files must be self-contained in the sense that they
must #include anything they might need internally.
An obvious workaround for a programmer is to #include <limits.h> before
<linux/cdrom.h>.
A trivial code that illustrates the problem is attached.
#include <linux/cdrom.h>
foo()
{
int bar = CDSL_CURRENT;
}
Reply to: