c7814c3f0e
ok sthen@
22 lines
714 B
Plaintext
22 lines
714 B
Plaintext
$OpenBSD: patch-include_vlc_cpu_h,v 1.1 2013/01/03 03:07:29 brad Exp $
|
|
--- include/vlc_cpu.h.orig Mon Dec 31 21:37:12 2012
|
|
+++ include/vlc_cpu.h Mon Dec 31 21:37:38 2012
|
|
@@ -40,7 +40,7 @@
|
|
|
|
# if defined (__MMX__)
|
|
# define VLC_MMX
|
|
-# elif VLC_GCC_VERSION(4, 4)
|
|
+# elif VLC_GCC_VERSION(4, 4) || defined(__clang__)
|
|
# define VLC_MMX __attribute__ ((__target__ ("mmx")))
|
|
# else
|
|
# define VLC_MMX VLC_MMX_is_not_implemented_on_this_compiler
|
|
@@ -48,7 +48,7 @@
|
|
|
|
# if defined (__SSE__)
|
|
# define VLC_SSE
|
|
-# elif VLC_GCC_VERSION(4, 4)
|
|
+# elif VLC_GCC_VERSION(4, 4) || defined(__clang__)
|
|
# define VLC_SSE __attribute__ ((__target__ ("sse")))
|
|
# else
|
|
# define VLC_SSE VLC_SSE_is_not_implemented_on_this_compiler
|