]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR libstdc++/47560 try two
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 7 Feb 2011 20:06:03 +0000 (20:06 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 7 Feb 2011 20:06:03 +0000 (20:06 +0000)
2011-02-07  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/47560 try two
* config/os/hpux/os_defines.h: Guard for C++.

From-SVN: r169897

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/hpux/os_defines.h

index fd96457b97542c609f769b2c8195363afd77963d..f21f4aec62e47ac837723d6a390d9124d6832302 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-07  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/47560 try two
+       * config/os/hpux/os_defines.h: Guard for C++.
+
 2011-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * doc/xml/faq.xml: Adjust link to bug database.
index 00100005920ada545e878a2179e43f923413e665..432e116975477c4ebd08d7a1acf12b3c6077af75 100644 (file)
    We also force _GLIBCXX_USE_LONG_LONG here so that we don't have
    to bastardize configure to deal with this sillyness.  */
 
+#ifdef __cplusplus
 namespace std
 {
-_GLIBCXX_BEGIN_EXTERN_C
-
+  extern "C" 
+  {
 #ifndef __LP64__
   __extension__ long long strtoll (const char *, char **, int)
     __asm  ("__strtoll");
@@ -73,9 +74,9 @@ _GLIBCXX_BEGIN_EXTERN_C
   __extension__ unsigned long long strtoull (const char *, char **, int)
     __asm  ("strtoul");
 #endif
-
-_GLIBCXX_END_EXTERN_C
+  }
 } // namespace std
+#endif // __cplusplus
 
 #define _GLIBCXX_USE_LONG_LONG 1