cpptrad.c (scan_out_logical_line): Check recursing only when we know we have a macro...
[official-gcc.git] / libstdc++-v3 / config / os / hpux / bits / os_defines.h
blobc8a6c9df8a78dcc20200393479cf521126368bfc
1 // Specific definitions for generic platforms -*- C++ -*-
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 // USA.
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
30 #ifndef _GLIBCPP_OS_DEFINES
31 #define _GLIBCPP_OS_DEFINES
33 // System-specific #define, typedefs, corrections, etc, go here. This
34 // file will come before all others.
36 #define __off_t off_t
37 #define __off64_t off64_t
38 #define __ssize_t ssize_t
40 #define __glibcpp_wchar_t_is_signed false
42 // Use macro form of ctype functions to ensure __SB_masks is defined.
43 #define _SB_CTYPE_MACROS 1
45 /* HP-UX, for reasons unknown choose to use a different name for
46 the string to [unsigned] long long conversion routines.
48 Furthermore, instead of having the prototypes in stdlib.h like
49 everyone else, they put them into a non-standard header
50 <inttypes.h>. Ugh.
52 <inttypes.h> defines a variety of things, some of which we
53 probably do not want. So we don't want to include it here.
55 Luckily we can just declare strtoll and strtoull with the
56 __asm extension which effectively renames calls at the
57 source level without namespace pollution.
59 Also note that the compiler defines _INCLUDE_LONGLONG for C++
60 unconditionally, which makes intmax_t and uintmax_t long long
61 types.
63 We also force _GLIBCPP_USE_LONG_LONG here so that we don't have
64 to bastardize configure to deal with this sillyness. */
65 namespace std {
66 #ifndef __LP64__
67 __extension__ extern "C" long long strtoll (const char *, char **, int)
68 __asm ("__strtoll");
69 __extension__ extern "C" unsigned long long strtoull (const char *, char **, int)
70 __asm ("__strtoull");
71 #else
72 __extension__ extern "C" long long strtoll (const char *, char **, int)
73 __asm ("strtol");
74 __extension__ extern "C" unsigned long long strtoull (const char *, char **, int)
75 __asm ("strtoul");
76 #endif
78 #define _GLIBCPP_USE_LONG_LONG 1
79 #endif