Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-02 Thread Pedro Alves
On 11/02/2015 01:36 AM, Paul Eggert wrote: > Pedro Alves wrote: >> and gnulib is deciding that the system's stdint.h is good enough >> At least, I don't get a stdint.h replacement. > > Since gnulib's test program contains this: > > intmax_t i = INTMAX_MAX; > > I'm surprised that gnulib decided t

Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-02 Thread Pedro Alves
On 11/02/2015 10:36 AM, Pedro Alves wrote: > $ grep -rn gl_cv_header_working_stdint_h > config.cache:628:gl_cv_header_working_stdint_h=${gl_cv_header_working_stdint_h=no} > config.log:39493:gl_cv_header_working_stdint_h=no > > But, I don't get a replacement: > > $ find . -name stdint.h > $ > >

[PATCH] Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-02 Thread Pedro Alves
On 11/02/2015 11:03 AM, Pedro Alves wrote: > On 11/02/2015 10:36 AM, Pedro Alves wrote: > >> $ grep -rn gl_cv_header_working_stdint_h >> config.cache:628:gl_cv_header_working_stdint_h=${gl_cv_header_working_stdint_h=no} >> config.log:39493:gl_cv_header_working_stdint_h=no >> >> But, I don't get a

Is it possible / easy to build a shared library of a selection of modules?

2015-11-02 Thread Jimi Damon
Hi, I saw this message posted back in 2011 but I've never seen anyone post a solution to it. I would like to build libgnu.so and use it in my project. The reason for this is because I use strictly a CMake build and it would be much easier to link in this library instead of trying to recode m

Re: [PATCH] Re: stdint.h, C++ and __STDC_LIMIT_MACROS

2015-11-02 Thread Paul Eggert
Pedro Alves wrote: Instead of trying to detect the right types, detect good-enough-pre-C++11 stdint.h and in such case make the substitute stdint.h just wrap the system's stdint.h with __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined. Instead, how about just adding the necessary #defines for