Re: strtol, strtoul: Fix compilation error in C++ mode on Solaris 11

2022-09-02 Thread Bruno Haible
Paul Eggert wrote: > > +# if __GLIBC__ >= 2 > > _GL_CXXALIASWARN (strtol); > > +# endif > > Would it make sense to move the __GLIBC__ >= 2 check into > _GL_CXXALIASWARN so that we needn't worry about making these sorts of > patches? How much benefit to non-glibc ports do we obtain from

Re: strtol, strtoul: Fix compilation error in C++ mode on Solaris 11

2022-09-02 Thread Paul Eggert
On 9/2/22 13:37, Bruno Haible wrote: +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (strtol); +# endif Would it make sense to move the __GLIBC__ >= 2 check into _GL_CXXALIASWARN so that we needn't worry about making these sorts of patches? How much benefit to non-glibc ports do we obtain from

strtol, strtoul: Fix compilation error in C++ mode on Solaris 11

2022-09-02 Thread Bruno Haible
' in the declaration makes a difference in C++. This patch fixes it. 2022-09-02 Bruno Haible strtol, strtoul: Fix compilation error in C++ mode on Solaris 11. * lib/stdlib.in.h (strtol, strtoul): Enable the C++ alias warning only on glibc systems. diff --git a/lib