about summary refs log tree commit diff
path: root/sysdeps/s390
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/s390')
-rw-r--r--sysdeps/s390/bits/string.h2
-rw-r--r--sysdeps/s390/fpu/bits/mathinline.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/s390/bits/string.h b/sysdeps/s390/bits/string.h
index e16c7cb829..87550c5f67 100644
--- a/sysdeps/s390/bits/string.h
+++ b/sysdeps/s390/bits/string.h
@@ -31,7 +31,7 @@
     && defined __GNUC__ && __GNUC__ >= 2
 
 #ifndef __STRING_INLINE
-# ifdef __cplusplus
+# ifndef __extern_inline
 #  define __STRING_INLINE inline
 # else
 #  define __STRING_INLINE __extern_inline
diff --git a/sysdeps/s390/fpu/bits/mathinline.h b/sysdeps/s390/fpu/bits/mathinline.h
index 06a6368450..03af01c2b1 100644
--- a/sysdeps/s390/fpu/bits/mathinline.h
+++ b/sysdeps/s390/fpu/bits/mathinline.h
@@ -21,7 +21,7 @@
 # error "Never use <bits/mathinline.h> directly; include <math.h> instead."
 #endif
 
-#ifdef __cplusplus
+#ifndef __extern_inline
 # define __MATH_INLINE __inline
 #else
 # define __MATH_INLINE __extern_inline