diff options
author | Bruno Haible <bruno@clisp.org> | 2012-01-05 18:42:08 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-01-05 18:42:08 +0100 |
commit | 051f3f4e306c6f6ede3da2729ef666fd3edb3d68 (patch) | |
tree | 901e963ea1c8aba86f522fa11341b4f354eb7f26 /lib/inttypes.in.h | |
parent | b301fd3cf02f022cc8d0a5103b2ab3bf4286a81a (diff) | |
download | gnulib-051f3f4e306c6f6ede3da2729ef666fd3edb3d68.tar.gz |
inttypes: Modernize.
* lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
* modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
(Makefile.am): Update inttypes.h rule.
Diffstat (limited to 'lib/inttypes.in.h')
-rw-r--r-- | lib/inttypes.in.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/inttypes.in.h b/lib/inttypes.in.h index e08a6608c0..e10f697674 100644 --- a/lib/inttypes.in.h +++ b/lib/inttypes.in.h @@ -56,6 +56,8 @@ # error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@gnu.org>." #endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ @@ -1079,8 +1081,11 @@ _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - " #if @GNULIB_STRTOIMAX@ # if !@HAVE_DECL_STRTOIMAX@ # undef strtoimax -extern intmax_t strtoimax (const char *, char **, int) _GL_ARG_NONNULL ((1)); +_GL_FUNCDECL_SYS (strtoimax, intmax_t, + (const char *, char **, int) _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (strtoimax, intmax_t, (const char *, char **, int)); +_GL_CXXALIASWARN (strtoimax); #elif defined GNULIB_POSIXCHECK # undef strtoimax # if HAVE_RAW_DECL_STRTOIMAX @@ -1092,8 +1097,11 @@ _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - " #if @GNULIB_STRTOUMAX@ # if !@HAVE_DECL_STRTOUMAX@ # undef strtoumax -extern uintmax_t strtoumax (const char *, char **, int) _GL_ARG_NONNULL ((1)); +_GL_FUNCDECL_SYS (strtoumax, uintmax_t, + (const char *, char **, int) _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (strtoumax, uintmax_t, (const char *, char **, int)); +_GL_CXXALIASWARN (strtoumax); #elif defined GNULIB_POSIXCHECK # undef strtoumax # if HAVE_RAW_DECL_STRTOUMAX |