diff options
author | joerg@mysql.com <> | 2004-08-26 17:30:53 +0200 |
---|---|---|
committer | joerg@mysql.com <> | 2004-08-26 17:30:53 +0200 |
commit | 10cf7f1f387227e777637d1c01fe90c735fd4bda (patch) | |
tree | c8951dd1e0a372f4564a5682b7f39f0e8a42499d /strings/strtoul.c | |
parent | 9a6b76aa90aa2392b3ae79fc5240a22064a9b890 (diff) | |
download | mariadb-git-10cf7f1f387227e777637d1c01fe90c735fd4bda.tar.gz |
If the system has 64 bit "long", then "long long" does not add new
functionality. The existing code takes advantage of this when
"typedef"ing 'longlong' in 'my_global.h'. This holds for Alpha CPUs.
If the compiler then has prototypes for C99 functions 'strtoll()' and
'strtoull()' but no implementation, the existing code in 'strtoull.c'
collides with that prototype. These collisions are avoided now.
Diffstat (limited to 'strings/strtoul.c')
-rw-r--r-- | strings/strtoul.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/strings/strtoul.c b/strings/strtoul.c index 00e1f820942..32a7bc62298 100644 --- a/strings/strtoul.c +++ b/strings/strtoul.c @@ -14,9 +14,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* This is defines strtoul() if neaded */ +/* This implements strtol() if needed */ +/* + These includes are mandatory because they check for type sizes and + functions, especially they handle tricks for Tru64 where 'long' is + 64 bit already and our 'longlong' is just a 'long'. + */ #include <my_global.h> +#include <m_string.h> + #if !defined(MSDOS) && !defined(HAVE_STRTOUL) #define USE_UNSIGNED #include "strto.c" |