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
37 #define PLATFORM(WTF_FEATURE) (WTF_PLATFORM_##WTF_FEATURE)
38 #define COMPILER(WTF_FEATURE) (WTF_COMPILER_##WTF_FEATURE)
39 #define HAVE(WTF_FEATURE) (HAVE_##WTF_FEATURE)
40 #define USE(WTF_FEATURE) (WTF_USE_##WTF_FEATURE)
41 #define ENABLE(WTF_FEATURE) (ENABLE_##WTF_FEATURE)
43 #define PLATFORM(WTF_FEATURE) (defined(WTF_PLATFORM_##WTF_FEATURE) && WTF_PLATFORM_##WTF_FEATURE)
44 #define COMPILER(WTF_FEATURE) (defined(WTF_COMPILER_##WTF_FEATURE) && WTF_COMPILER_##WTF_FEATURE)
45 #define HAVE(WTF_FEATURE) (defined(HAVE_##WTF_FEATURE) && HAVE_##WTF_FEATURE)
46 #define USE(WTF_FEATURE) (defined(WTF_USE_##WTF_FEATURE) && WTF_USE_##WTF_FEATURE)
47 #define ENABLE(WTF_FEATURE) (defined(ENABLE_##WTF_FEATURE) && ENABLE_##WTF_FEATURE)
56 #define WTF_PLATFORM_DARWIN 1
62 #if defined(WIN32) || defined(_WIN32)
63 #define WTF_PLATFORM_WIN_OS 1
70 #if defined(__APPLE__) \
73 || defined(__unix__) \
74 || defined (__NetBSD__) \
76 #define WTF_PLATFORM_UNIX 1
83 #if defined(__sun) || defined(sun)
84 #define WTF_PLATFORM_SOLARIS_OS 1
95 #define WTF_PLATFORM_KDE 1
96 #elif PLATFORM(DARWIN)
97 #define WTF_PLATFORM_MAC 1
98 #elif PLATFORM(WIN_OS)
99 #define WTF_PLATFORM_WIN 1
101 #if defined(BUILDING_GDK__)
102 #define WTF_PLATFORM_GDK 1
109 #if defined(__ppc__) \
110 || defined(__PPC__) \
111 || defined(__powerpc__) \
112 || defined(__powerpc) \
113 || defined(__POWERPC__) \
116 #define WTF_PLATFORM_PPC 1
117 #define WTF_PLATFORM_BIG_ENDIAN 1
121 #if defined(__ppc64__) \
122 || defined(__PPC64__)
123 #define WTF_PLATFORM_PPC64 1
124 #define WTF_PLATFORM_BIG_ENDIAN 1
128 #define WTF_PLATFORM_ARM 1
129 #if defined(__ARMEB__)
130 #define WTF_PLATFORM_BIG_ENDIAN 1
131 #elif !defined(__ARM_EABI__) && !defined(__ARMEB__)
132 #define WTF_PLATFORM_MIDDLE_ENDIAN 1
134 #if !defined(__ARM_EABI__)
135 #define WTF_PLATFORM_FORCE_PACK 1
140 #if defined(__i386__) \
142 || defined(_M_IX86) \
144 || defined(__THW_INTEL)
145 #define WTF_PLATFORM_X86 1
149 #if defined(__x86_64__) \
151 #define WTF_PLATFORM_X86_64 1
156 #define WTF_PLATFORM_SPARC 1
162 #if defined(__MWERKS__)
163 #define WTF_COMPILER_CWP 1
167 #if defined(_MSC_VER)
168 #define WTF_COMPILER_MSVC 1
172 #if defined(__GNUC__)
173 #define WTF_COMPILER_GCC 1
177 #if defined(__SUNPRO_CC)
178 #define WTF_COMPILER_SUNPRO 1
183 #if defined(__BORLANDC__)
184 #define WTF_COMPILER_BORLAND 1
189 #if defined(__CYGWIN__)
190 #define WTF_COMPILER_CYGWIN 1
195 #ifndef WTF_USE_MULTIPLE_THREADS
196 #define WTF_USE_MULTIPLE_THREADS 1
198 #ifndef WTF_USE_BINDINGS
199 #define WTF_USE_BINDINGS 1
204 #if PLATFORM(KDE) || PLATFORM(QT)
205 #define WTF_USE_QT4_UNICODE 1
206 #elif PLATFORM(SYMBIAN)
207 #define WTF_USE_SYMBIAN_UNICODE 1
209 #define WTF_USE_ICU_UNICODE 1
213 #define WTF_PLATFORM_CF 1
217 #define WTF_USE_WININET 1
221 #define WTF_USE_CURL 1
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:46 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.