Browse code

- fix: ifdef __CPU_i386 define __CPU_x86

Andrei Pelinescu-Onciul authored on 17/07/2008 10:12:07
Showing 2 changed files
... ...
@@ -46,6 +46,11 @@
46 46
 
47 47
 #include <limits.h>
48 48
 
49
+/* fix __CPU_i386 -> __CPU_x86 */
50
+#if defined __CPU_i386 && ! defined __CPU_x86
51
+#define __CPU_x86
52
+#endif
53
+
49 54
 
50 55
 #ifdef CC_GCC_LIKE_ASM
51 56
 #if defined __CPU_x86 || defined __CPU_x86_64
... ...
@@ -68,6 +68,10 @@
68 68
  *                              the cpu cycles counter
69 69
  */
70 70
 
71
+#if defined __CPU_i386 && ! defined __CPU_x86
72
+#define __CPU_x86
73
+#endif
74
+
71 75
 #ifdef __CPU_x86
72 76
 typedef unsigned long long cycles_t;
73 77