about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/wcslen-sse2.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/multiarch/wcslen-sse2.S')
-rw-r--r--sysdeps/x86_64/multiarch/wcslen-sse2.S15
1 files changed, 10 insertions, 5 deletions
diff --git a/sysdeps/x86_64/multiarch/wcslen-sse2.S b/sysdeps/x86_64/multiarch/wcslen-sse2.S
index 944c3bd9c6..e9c518a932 100644
--- a/sysdeps/x86_64/multiarch/wcslen-sse2.S
+++ b/sysdeps/x86_64/multiarch/wcslen-sse2.S
@@ -16,13 +16,16 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#if IS_IN (libc)
-# ifndef WCSLEN
-#  define WCSLEN __wcslen_sse2
-# endif
+#include <isa-level.h>
+
+#if ISA_SHOULD_BUILD (1)
+
+# include <sysdep.h>
+
+#ifndef WCSLEN
+# define WCSLEN	__wcslen_sse2
 #endif
 
-#include <sysdep.h>
 
 	.text
 ENTRY (WCSLEN)
@@ -235,3 +238,5 @@ L(exit_tail7):
 	ret
 
 END (WCSLEN)
+
+#endif