summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-08-23 07:42:10 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-08-23 07:42:10 +0000
commit80e60a5fe36364e9c7a4e92ff93b12e201ebe9a9 (patch)
tree116735a430d06c69499251cc3deb1eebce8d6760
parent030af3533ec8bbfa95a00b14a97433a8dfe6ec03 (diff)
downloadenlightenment-80e60a5fe36364e9c7a4e92ff93b12e201ebe9a9.tar.gz
E17: CPUID_MMX, CPUID_SSE and CPUID_SSE2 might already be defined (like on OpenBSD)
Patch by Maxime Vilard (rustyBSD) SVN revision: 75600
-rw-r--r--src/bin/e_mmx.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/e_mmx.h b/src/bin/e_mmx.h
index 57ae56e036..3569fd067a 100644
--- a/src/bin/e_mmx.h
+++ b/src/bin/e_mmx.h
@@ -578,9 +578,15 @@ typedef union {
/* additions to detect mmx - */
/* Raster <raster@rasterman.com> */
-#define CPUID_MMX (1 << 23) /* flags: mmx */
-#define CPUID_SSE (1 << 25) /* flags: xmm */
-#define CPUID_SSE2 (1 << 26) /* flags: ? */
+#ifndef CPUID_MMX
+# define CPUID_MMX (1 << 23) /* flags: mmx */
+#endif
+#ifndef CPUID_SSE
+# define CPUID_SSE (1 << 25) /* flags: xmm */
+#endif
+#ifndef CPUID_SSE2
+# define CPUID_SSE2 (1 << 26) /* flags: ? */
+#endif
#ifdef __amd64
#define have_cpuid(cpuid_ret) \