summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/config/cpu/sh/atomicity.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/config/cpu/sh/atomicity.h')
-rw-r--r--libstdc++-v3/config/cpu/sh/atomicity.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/config/cpu/sh/atomicity.h b/libstdc++-v3/config/cpu/sh/atomicity.h
index d200818f66d..f4bfb12f580 100644
--- a/libstdc++-v3/config/cpu/sh/atomicity.h
+++ b/libstdc++-v3/config/cpu/sh/atomicity.h
@@ -28,11 +28,11 @@
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-#ifndef _BITS_ATOMICITY_H
-#define _BITS_ATOMICITY_H 1
-
#ifdef __SH4A__
+#ifndef _GLIBCXX_ATOMICITY_H
+#define _GLIBCXX_ATOMICITY_H 1
+
typedef int _Atomic_word;
static inline _Atomic_word
@@ -70,6 +70,8 @@ __atomic_add (volatile _Atomic_word* __mem, int __val)
: "r0");
}
+#endif
+
#else /* !__SH4A__ */
/* This is generic/atomicity.h */
@@ -103,5 +105,3 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
_GLIBCXX_END_NAMESPACE
#endif /* !__SH4A__ */
-
-#endif /* atomicity.h */
OpenPOWER on IntegriCloud