WTF
Go to the documentation of this file.
27 #ifndef WTF_Platform_h
28 #define WTF_Platform_h
31 #ifndef BUILDING_KDE__
32 #define BUILDING_KDE__ 1
36 #define PLATFORM(WTF_FEATURE) (defined( WTF_PLATFORM_##WTF_FEATURE ) && WTF_PLATFORM_##WTF_FEATURE)
37 #define COMPILER(WTF_FEATURE) (defined( WTF_COMPILER_##WTF_FEATURE ) && WTF_COMPILER_##WTF_FEATURE)
38 #define HAVE(WTF_FEATURE) (defined( HAVE_##WTF_FEATURE ) && HAVE_##WTF_FEATURE)
39 #define USE(WTF_FEATURE) (defined( WTF_USE_##WTF_FEATURE ) && WTF_USE_##WTF_FEATURE)
40 #define ENABLE(WTF_FEATURE) (defined( ENABLE_##WTF_FEATURE ) && ENABLE_##WTF_FEATURE)
48 #define WTF_PLATFORM_DARWIN 1
54 #if defined(WIN32) || defined(_WIN32)
55 #define WTF_PLATFORM_WIN_OS 1
62 #if defined(__APPLE__) \
65 || defined(__unix__) \
66 || defined (__NetBSD__) \
68 #define WTF_PLATFORM_UNIX 1
75 #if defined(__sun) || defined(sun)
76 #define WTF_PLATFORM_SOLARIS_OS 1
87 #define WTF_PLATFORM_KDE 1
88 #elif PLATFORM(DARWIN)
89 #define WTF_PLATFORM_MAC 1
90 #elif PLATFORM(WIN_OS)
91 #define WTF_PLATFORM_WIN 1
93 #if defined(BUILDING_GDK__)
94 #define WTF_PLATFORM_GDK 1
101 #if defined(__ppc__) \
102 || defined(__PPC__) \
103 || defined(__powerpc__) \
104 || defined(__powerpc) \
105 || defined(__POWERPC__) \
108 #define WTF_PLATFORM_PPC 1
109 #define WTF_PLATFORM_BIG_ENDIAN 1
113 #if defined(__ppc64__) \
114 || defined(__PPC64__)
115 #define WTF_PLATFORM_PPC64 1
116 #define WTF_PLATFORM_BIG_ENDIAN 1
120 #define WTF_PLATFORM_ARM 1
121 #if defined(__ARMEB__)
122 #define WTF_PLATFORM_BIG_ENDIAN 1
123 #elif !defined(__ARM_EABI__) && !defined(__ARMEB__)
124 #define WTF_PLATFORM_MIDDLE_ENDIAN 1
126 #if !defined(__ARM_EABI__)
127 #define WTF_PLATFORM_FORCE_PACK 1
132 #if defined(__i386__) \
134 || defined(_M_IX86) \
136 || defined(__THW_INTEL)
137 #define WTF_PLATFORM_X86 1
141 #if defined(__x86_64__) \
143 #define WTF_PLATFORM_X86_64 1
148 #define WTF_PLATFORM_SPARC 1
154 #if defined(__MWERKS__)
155 #define WTF_COMPILER_CWP 1
159 #if defined(_MSC_VER)
160 #define WTF_COMPILER_MSVC 1
164 #if defined(__GNUC__)
165 #define WTF_COMPILER_GCC 1
169 #if defined(__SUNPRO_CC)
170 #define WTF_COMPILER_SUNPRO 1
175 #if defined(__BORLANDC__)
176 #define WTF_COMPILER_BORLAND 1
181 #if defined(__CYGWIN__)
182 #define WTF_COMPILER_CYGWIN 1
187 #ifndef WTF_USE_MULTIPLE_THREADS
188 #define WTF_USE_MULTIPLE_THREADS 1
190 #ifndef WTF_USE_BINDINGS
191 #define WTF_USE_BINDINGS 1
196 #if PLATFORM(KDE) || PLATFORM(QT)
197 #define WTF_USE_QT4_UNICODE 1
198 #elif PLATFORM(SYMBIAN)
199 #define WTF_USE_SYMBIAN_UNICODE 1
201 #define WTF_USE_ICU_UNICODE 1
205 #define WTF_PLATFORM_CF 1
209 #define WTF_USE_WININET 1
213 #define WTF_USE_CURL 1
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Feb 9 2013 12:04:19 by
doxygen 1.8.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.