strtoul.c 1.1 KB
Newer Older
monty@hundin.mysql.fi's avatar
monty@hundin.mysql.fi committed
1 2 3 4 5 6 7 8
/* Copyright (C) 2000 MySQL AB

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
bk@work.mysql.com's avatar
bk@work.mysql.com committed
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
monty@hundin.mysql.fi's avatar
monty@hundin.mysql.fi committed
10 11 12 13 14 15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
bk@work.mysql.com's avatar
bk@work.mysql.com committed
16

17
/* This implements strtol() if needed */
bk@work.mysql.com's avatar
bk@work.mysql.com committed
18

19 20 21 22 23
/*
   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'.
 */
24
#include <my_global.h>
25 26
#include <m_string.h>

bk@work.mysql.com's avatar
bk@work.mysql.com committed
27
#if !defined(MSDOS) && !defined(HAVE_STRTOUL)
monty@hundin.mysql.fi's avatar
monty@hundin.mysql.fi committed
28
#define USE_UNSIGNED
bk@work.mysql.com's avatar
bk@work.mysql.com committed
29 30
#include "strto.c"
#endif