Re: Successfully defining png_int_16 in pngconf.h
Cosmin Truta <[email protected]> Thu, 14 Feb 2019 21:53:19 -0500
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <CAAoVtZwh0sEnY4C31D=n_FTFTTTv0w5-ra2csQ-jWcjt2V2Tug@mail.gmail.com> |
On Thu, 14 Feb 2019 at 21:23, Michael Enright <[email protected]> wrote: > In linux/kernel.h INT_MAX is defined as ((int)((~0U>>1)) This is so unusual, and I conjecture that linux/kernel.h is broken. I need to look into the standard C, and see what it really says. I always took it for granted that INT_MAX and friends are not just macros. They ought to be macros suitable for use in preprocessor conditions, before even the compile-time kicks in. Sincerely, Cosmin