HP-UX does not have strtoull

Submitted by: Jan Kneschke <jan.kneschke@mysql.com>
This commit is contained in:
Doug MacEachern 2007-05-10 15:25:14 +00:00
parent 994642cd26
commit a3410ce4d4
1 changed files with 5 additions and 2 deletions

View File

@ -26,8 +26,11 @@
#include "pcre.h"
#endif
#ifdef WIN32
#define strtoull strtoul /*XXX*/
/* See http://gcc.gnu.org/ml/libstdc++/2002-03/msg00164.html */
#if defined(WIN32) || (defined(__hpux) && defined(SIGAR_64BIT))
#define strtoull strtoul
#elif (defined(__hpux) && !defined(SIGAR_64BIT))
#define strtoull __strtoull
#else
#include <errno.h>
#endif