aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/os/hpux/os_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/config/os/hpux/os_defines.h')
-rw-r--r--libstdc++-v3/config/os/hpux/os_defines.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/config/os/hpux/os_defines.h b/libstdc++-v3/config/os/hpux/os_defines.h
index aae9998c552..9dd4fb41af6 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -84,8 +84,9 @@ namespace std
typedef long int __padding_type;
#endif
-/* We need explicit instantiation of the atomicity lock on 32-bit HPUX. */
-#ifndef __LP64__
+/* We need explicit instantiation of the atomicity lock on HPPA if
+ there is no weak support. */
+#if !defined(_GLIBCPP_SUPPORTS_WEAK) && defined (__hppa__)
#define _GLIBCPP_INST_ATOMICITY_LOCK 1
#endif
#endif