aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
-rw-r--r--include/xatonum.h14
2 files changed, 9 insertions, 7 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 1d91a0a72..65430d254 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -51,7 +51,9 @@
51 51
52#include "pwd_.h" 52#include "pwd_.h"
53#include "grp_.h" 53#include "grp_.h"
54#if ENABLE_FEATURE_SHADOWPASSWDS
54#include "shadow_.h" 55#include "shadow_.h"
56#endif
55 57
56/* Try to pull in PATH_MAX */ 58/* Try to pull in PATH_MAX */
57#include <limits.h> 59#include <limits.h>
diff --git a/include/xatonum.h b/include/xatonum.h
index 585d84623..8b1663789 100644
--- a/include/xatonum.h
+++ b/include/xatonum.h
@@ -115,7 +115,7 @@ extern inline
115unsigned long bb_strtoul(const char *arg, char **endp, int base) 115unsigned long bb_strtoul(const char *arg, char **endp, int base)
116{ return bb_strtoull(arg, endp, base); } 116{ return bb_strtoull(arg, endp, base); }
117extern inline 117extern inline
118unsigned long bb_strtol(const char *arg, char **endp, int base) 118long bb_strtol(const char *arg, char **endp, int base)
119{ return bb_strtoll(arg, endp, base); } 119{ return bb_strtoll(arg, endp, base); }
120#else 120#else
121unsigned long bb_strtoul(const char *arg, char **endp, int base); 121unsigned long bb_strtoul(const char *arg, char **endp, int base);
@@ -124,21 +124,21 @@ long bb_strtol(const char *arg, char **endp, int base);
124 124
125#if UINT_MAX == ULLONG_MAX 125#if UINT_MAX == ULLONG_MAX
126extern inline 126extern inline
127unsigned long bb_strtou(const char *arg, char **endp, int base) 127unsigned bb_strtou(const char *arg, char **endp, int base)
128{ return bb_strtoull(arg, endp, base); } 128{ return bb_strtoull(arg, endp, base); }
129extern inline 129extern inline
130unsigned long bb_strtoi(const char *arg, char **endp, int base) 130int bb_strtoi(const char *arg, char **endp, int base)
131{ return bb_strtoll(arg, endp, base); } 131{ return bb_strtoll(arg, endp, base); }
132#elif UINT_MAX == ULONG_MAX 132#elif UINT_MAX == ULONG_MAX
133extern inline 133extern inline
134unsigned long bb_strtou(const char *arg, char **endp, int base) 134unsigned bb_strtou(const char *arg, char **endp, int base)
135{ return bb_strtoul(arg, endp, base); } 135{ return bb_strtoul(arg, endp, base); }
136extern inline 136extern inline
137unsigned long bb_strtoi(const char *arg, char **endp, int base) 137int bb_strtoi(const char *arg, char **endp, int base)
138{ return bb_strtol(arg, endp, base); } 138{ return bb_strtol(arg, endp, base); }
139#else 139#else
140unsigned long bb_strtou(const char *arg, char **endp, int base); 140unsigned bb_strtou(const char *arg, char **endp, int base);
141long bb_strtoi(const char *arg, char **endp, int base); 141int bb_strtoi(const char *arg, char **endp, int base);
142#endif 142#endif
143 143
144int BUG_bb_strtou32_unimplemented(void); 144int BUG_bb_strtou32_unimplemented(void);