From 4585ae3de289f2174e3c294c6cad953d086d8a8f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 21 Dec 2001 17:42:46 -0700 Subject: [PATCH] os_defines.h: Include * configure.target: Fix typo in hpux case. diff --git a/libstdc++-v3/config/os/hpux/bits/os_defines.h b/libstdc++-v3/config/os/hpux/bits/os_defines.h index d7045d0a16e..323c0c66d71 100644 --- a/libstdc++-v3/config/os/hpux/bits/os_defines.h +++ b/libstdc++-v3/config/os/hpux/bits/os_defines.h @@ -43,4 +43,27 @@ #define __glibcpp_long_bits 64 #endif +/* HP-UX, for reasons unknown choose to use a different name for + the string to [unsigned] long long conversion routines. + + Furthermore, instead of having the prototypes in stdlib.h like + everyone else, they put them into a non-standard header + . Ugh. + + defines a variety of things, some of which we + probably do not want. So we just provide prototypes for + the functions we care about here. + + However, to do that, we must include to get + intmax_t and uintmax_t. Luckily looks a + lot cleaner as far as namespace pollution is concerned. + + We also force _GLIBCPP_USE_LONG_LONG here so that we don't have + to bastardize configure to deal with this sillyness. */ +#include +#define strtoll __strtoll +#define strtoull __strtoull +extern intmax_t __strtoll (const char *, char**, int); +extern uintmax_t __strtoull (const char *, char**, int); +#define _GLIBCPP_USE_LONG_LONG 1 #endif