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(__s390x__)
102 #define WTF_PLATFORM_S390X 1
103 #define WTF_PLATFORM_BIG_ENDIAN 1
107 #if defined(__s390__)
108 #define WTF_PLATFORM_S390 1
109 #define WTF_PLATFORM_BIG_ENDIAN 1
113 #if defined(__ppc__) \
114 || defined(__PPC__) \
115 || defined(__powerpc__) \
116 || defined(__powerpc) \
117 || defined(__POWERPC__) \
120 #define WTF_PLATFORM_PPC 1
121 #define WTF_PLATFORM_BIG_ENDIAN 1
125 #if defined(__ppc64__) \
126 || defined(__PPC64__)
127 #define WTF_PLATFORM_PPC64 1
128 #define WTF_PLATFORM_BIG_ENDIAN 1
132 #define WTF_PLATFORM_ARM 1
133 #if defined(__ARMEB__)
134 #define WTF_PLATFORM_BIG_ENDIAN 1
135 #elif !defined(__ARM_EABI__) && !defined(__ARMEB__)
136 #define WTF_PLATFORM_MIDDLE_ENDIAN 1
138 #if !defined(__ARM_EABI__)
139 #define WTF_PLATFORM_FORCE_PACK 1
144 #if defined(__i386__) \
146 || defined(_M_IX86) \
148 || defined(__THW_INTEL)
149 #define WTF_PLATFORM_X86 1
153 #if defined(__x86_64__) \
155 #define WTF_PLATFORM_X86_64 1
160 #define WTF_PLATFORM_SPARC 1
166 #if defined(__MWERKS__)
167 #define WTF_COMPILER_CWP 1
171 #if defined(_MSC_VER)
172 #define WTF_COMPILER_MSVC 1
176 #if defined(__GNUC__)
177 #define WTF_COMPILER_GCC 1
181 #if defined(__SUNPRO_CC)
182 #define WTF_COMPILER_SUNPRO 1
187 #if defined(__BORLANDC__)
188 #define WTF_COMPILER_BORLAND 1
193 #if defined(__CYGWIN__)
194 #define WTF_COMPILER_CYGWIN 1
199 #ifndef WTF_USE_MULTIPLE_THREADS
200 #define WTF_USE_MULTIPLE_THREADS 1
202 #ifndef WTF_USE_BINDINGS
203 #define WTF_USE_BINDINGS 1
208 #if PLATFORM(KDE) || PLATFORM(QT)
209 #define WTF_USE_QT4_UNICODE 1
210 #elif PLATFORM(SYMBIAN)
211 #define WTF_USE_SYMBIAN_UNICODE 1
213 #define WTF_USE_ICU_UNICODE 1
217 #define WTF_PLATFORM_CF 1
221 #define WTF_USE_WININET 1
225 #define WTF_USE_CURL 1
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Sat May 31 2014 00:22:06 by
doxygen 1.8.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.