Changeset 17127 in webkit for trunk/JavaScriptCore/wtf/Platform.h
- Timestamp:
- Oct 18, 2006, 7:42:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Platform.h
r17055 r17127 25 25 */ 26 26 27 #ifndef KXMLCORE_PLATFORM_H28 #define KXMLCORE_PLATFORM_H27 #ifndef WTF_Platform_h 28 #define WTF_Platform_h 29 29 30 30 /* PLATFORM handles OS, operating environment, graphics API, and CPU */ 31 #define PLATFORM( KX_FEATURE) (defined( KXMLCORE_PLATFORM_##KX_FEATURE ) && KXMLCORE_PLATFORM_##KX_FEATURE)32 #define COMPILER( KX_FEATURE) (defined( KXMLCORE_COMPILER_##KX_FEATURE ) && KXMLCORE_COMPILER_##KX_FEATURE)33 #define HAVE( KX_FEATURE) (defined( HAVE_##KX_FEATURE ) && HAVE_##KX_FEATURE)34 #define USE( KX_FEATURE) (defined( KXMLCORE_USE_##KX_FEATURE ) && KXMLCORE_USE_##KX_FEATURE)31 #define PLATFORM(WTF_FEATURE) (defined( WTF_PLATFORM_##WTF_FEATURE ) && WTF_PLATFORM_##WTF_FEATURE) 32 #define COMPILER(WTF_FEATURE) (defined( WTF_COMPILER_##WTF_FEATURE ) && WTF_COMPILER_##WTF_FEATURE) 33 #define HAVE(WTF_FEATURE) (defined( HAVE_##WTF_FEATURE ) && HAVE_##WTF_FEATURE) 34 #define USE(WTF_FEATURE) (defined( WTF_USE_##WTF_FEATURE ) && WTF_USE_##WTF_FEATURE) 35 35 36 36 /* Operating systems - low-level dependencies */ … … 40 40 /* be used regardless of operating environment */ 41 41 #ifdef __APPLE__ 42 #define KXMLCORE_PLATFORM_DARWIN 142 #define WTF_PLATFORM_DARWIN 1 43 43 #endif 44 44 … … 47 47 /* regardless of operating environment */ 48 48 #if defined(WIN32) || defined(_WIN32) 49 #define KXMLCORE_PLATFORM_WIN_OS 149 #define WTF_PLATFORM_WIN_OS 1 50 50 #endif 51 51 … … 60 60 || defined (__NetBSD__) \ 61 61 || defined(_AIX) 62 #define KXMLCORE_PLATFORM_UNIX 162 #define WTF_PLATFORM_UNIX 1 63 63 #endif 64 64 … … 69 69 /* PLATFORM(WIN) */ 70 70 #if defined(BUILDING_QT__) 71 #define KXMLCORE_PLATFORM_QT 171 #define WTF_PLATFORM_QT 1 72 72 73 73 /* PLATFORM(KDE) */ 74 74 #if defined(BUILDING_KDE__) 75 #define KXMLCORE_PLATFORM_KDE 175 #define WTF_PLATFORM_KDE 1 76 76 #endif 77 77 78 78 #elif PLATFORM(DARWIN) 79 #define KXMLCORE_PLATFORM_MAC 179 #define WTF_PLATFORM_MAC 1 80 80 #elif PLATFORM(WIN_OS) 81 #define KXMLCORE_PLATFORM_WIN 181 #define WTF_PLATFORM_WIN 1 82 82 #endif 83 83 #if defined(BUILDING_GDK__) 84 #define KXMLCORE_PLATFORM_GDK 184 #define WTF_PLATFORM_GDK 1 85 85 #endif 86 86 … … 90 90 /* PLATFORM(CAIRO) */ 91 91 #if PLATFORM(MAC) 92 #define KXMLCORE_PLATFORM_CG 192 #define WTF_PLATFORM_CG 1 93 93 #elif !PLATFORM(QT) 94 #define KXMLCORE_PLATFORM_CAIRO 194 #define WTF_PLATFORM_CAIRO 1 95 95 #endif 96 96 … … 105 105 || defined(_M_PPC) \ 106 106 || defined(__PPC) 107 #define KXMLCORE_PLATFORM_PPC 1108 #define KXMLCORE_PLATFORM_BIG_ENDIAN 1107 #define WTF_PLATFORM_PPC 1 108 #define WTF_PLATFORM_BIG_ENDIAN 1 109 109 #endif 110 110 … … 112 112 #if defined(__ppc64__) \ 113 113 || defined(__PPC64__) 114 #define KXMLCORE_PLATFORM_PPC64 1115 #define KXMLCORE_PLATFORM_BIG_ENDIAN 1114 #define WTF_PLATFORM_PPC64 1 115 #define WTF_PLATFORM_BIG_ENDIAN 1 116 116 #endif 117 117 118 118 #if defined(arm) 119 #define KXMLCORE_PLATFORM_ARM 1120 #define KXMLCORE_PLATFORM_MIDDLE_ENDIAN 1119 #define WTF_PLATFORM_ARM 1 120 #define WTF_PLATFORM_MIDDLE_ENDIAN 1 121 121 #endif 122 122 … … 127 127 || defined(_X86_) \ 128 128 || defined(__THW_INTEL) 129 #define KXMLCORE_PLATFORM_X86 1129 #define WTF_PLATFORM_X86 1 130 130 #endif 131 131 … … 133 133 #if defined(__x86_64__) \ 134 134 || defined(__ia64__) 135 #define KXMLCORE_PLATFORM_X86_64 1135 #define WTF_PLATFORM_X86_64 1 136 136 #endif 137 137 … … 140 140 /* COMPILER(MSVC) */ 141 141 #if defined(_MSC_VER) 142 #define KXMLCORE_COMPILER_MSVC 1142 #define WTF_COMPILER_MSVC 1 143 143 #endif 144 144 145 145 /* COMPILER(GCC) */ 146 146 #if defined(__GNUC__) 147 #define KXMLCORE_COMPILER_GCC 1147 #define WTF_COMPILER_GCC 1 148 148 #endif 149 149 … … 151 151 /* not really fully supported - is this relevant any more? */ 152 152 #if defined(__BORLANDC__) 153 #define KXMLCORE_COMPILER_BORLAND 1153 #define WTF_COMPILER_BORLAND 1 154 154 #endif 155 155 … … 157 157 /* not really fully supported - is this relevant any more? */ 158 158 #if defined(__CYGWIN__) 159 #define KXMLCORE_COMPILER_CYGWIN 1159 #define WTF_COMPILER_CYGWIN 1 160 160 #endif 161 161 162 162 /* multiple threads only supported on Mac for now */ 163 163 #if PLATFORM(MAC) 164 #define KXMLCORE_USE_MULTIPLE_THREADS 1164 #define WTF_USE_MULTIPLE_THREADS 1 165 165 #endif 166 166 … … 168 168 #if PLATFORM(KDE) 169 169 /* FIXME: Not using Qt4 unicode for now! */ 170 #define KXMLCORE_USE_ICU_UNICODE 1170 #define WTF_USE_ICU_UNICODE 1 171 171 #else 172 #define KXMLCORE_USE_ICU_UNICODE 1172 #define WTF_USE_ICU_UNICODE 1 173 173 #endif 174 174 175 175 #if PLATFORM(MAC) 176 #define KXMLCORE_PLATFORM_CF 1176 #define WTF_PLATFORM_CF 1 177 177 #endif 178 178 179 179 #if PLATFORM(WIN) 180 #define KXMLCORE_USE_WININET 1180 #define WTF_USE_WININET 1 181 181 #endif 182 182 183 183 #if PLATFORM(GDK) 184 #define KXMLCORE_USE_CURL 1184 #define WTF_USE_CURL 1 185 185 #endif 186 186 187 #endif /* KXMLCORE_PLATFORM_H*/187 #endif /* WTF_Platform_h */
Note:
See TracChangeset
for help on using the changeset viewer.