On Thu, Dec 15, 2011 at 11:50:23AM -0800, Paul Eggert wrote: > On 12/15/11 04:50, Alexander V. Lukyanov wrote: > > I get this message in a C++ program on linux (glibc-2.14). > > > > ../lib/inttypes.h:58:3: error: #error "This file assumes that 'int' has > > exactly 32 bits. Please report your platform and compiler to > > <bug-gnulib@gnu.org>." > > Thanks for reporting that. I installed the following patch > to try to fix it. Please give it a try.
This patch works if I use C++ compiler for AC_COMPILE tests. Not if I use plain C. > -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ before C++11 */ > -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ before C++11 > */ BTW, in the file stdint.m4 there is another place with those macros. -- Alexander.