diff options
Diffstat (limited to 'libstdc++-v3/config/os/hpux/os_defines.h')
-rw-r--r-- | libstdc++-v3/config/os/hpux/os_defines.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h index 6118a2671dd..515f42182b0 100644 --- a/libstdc++-v3/config/os/hpux/os_defines.h +++ b/libstdc++-v3/config/os/hpux/os_defines.h @@ -1,6 +1,6 @@ // Specific definitions for HPUX -*- C++ -*- -// Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2000, 2002, 2004, 2005, 2008 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -61,20 +61,24 @@ We also force _GLIBCXX_USE_LONG_LONG here so that we don't have to bastardize configure to deal with this sillyness. */ -namespace std -{ + +_GLIBCXX_BEGIN_NAMESPACE(std) +_GLIBCXX_BEGIN_EXTERN_C + #ifndef __LP64__ - __extension__ extern "C" long long strtoll (const char *, char **, int) + __extension__ long long strtoll (const char *, char **, int) __asm ("__strtoll"); - __extension__ extern "C" unsigned long long strtoull (const char *, char **, int) + __extension__ unsigned long long strtoull (const char *, char **, int) __asm ("__strtoull"); #else - __extension__ extern "C" long long strtoll (const char *, char **, int) + __extension__ long long strtoll (const char *, char **, int) __asm ("strtol"); - __extension__ extern "C" unsigned long long strtoull (const char *, char **, int) + __extension__ unsigned long long strtoull (const char *, char **, int) __asm ("strtoul"); #endif -} + +_GLIBCXX_END_EXTERN_C +_GLIBCXX_END_NAMESPACE #define _GLIBCXX_USE_LONG_LONG 1 |