00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
00036 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
00037
00038
00039 #ifdef __CYGWIN__
00040 # define GTEST_OS_CYGWIN 1
00041 #elif defined __SYMBIAN32__
00042 # define GTEST_OS_SYMBIAN 1
00043 #elif defined _WIN32
00044 # define GTEST_OS_WINDOWS 1
00045 # ifdef _WIN32_WCE
00046 # define GTEST_OS_WINDOWS_MOBILE 1
00047 # elif defined(__MINGW__) || defined(__MINGW32__)
00048 # define GTEST_OS_WINDOWS_MINGW 1
00049 # elif defined(WINAPI_FAMILY)
00050 # include <winapifamily.h>
00051 # if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
00052 # define GTEST_OS_WINDOWS_DESKTOP 1
00053 # elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP)
00054 # define GTEST_OS_WINDOWS_PHONE 1
00055 # elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
00056 # define GTEST_OS_WINDOWS_RT 1
00057 # else
00058
00059
00060 # define GTEST_OS_WINDOWS_DESKTOP 1
00061 # endif
00062 # else
00063 # define GTEST_OS_WINDOWS_DESKTOP 1
00064 # endif // _WIN32_WCE
00065 #elif defined __APPLE__
00066 # define GTEST_OS_MAC 1
00067 # if TARGET_OS_IPHONE
00068 # define GTEST_OS_IOS 1
00069 # endif
00070 #elif defined __FreeBSD__
00071 # define GTEST_OS_FREEBSD 1
00072 #elif defined __linux__
00073 # define GTEST_OS_LINUX 1
00074 # if defined __ANDROID__
00075 # define GTEST_OS_LINUX_ANDROID 1
00076 # endif
00077 #elif defined __MVS__
00078 # define GTEST_OS_ZOS 1
00079 #elif defined(__sun) && defined(__SVR4)
00080 # define GTEST_OS_SOLARIS 1
00081 #elif defined(_AIX)
00082 # define GTEST_OS_AIX 1
00083 #elif defined(__hpux)
00084 # define GTEST_OS_HPUX 1
00085 #elif defined __native_client__
00086 # define GTEST_OS_NACL 1
00087 #elif defined __OpenBSD__
00088 # define GTEST_OS_OPENBSD 1
00089 #elif defined __QNX__
00090 # define GTEST_OS_QNX 1
00091 #endif // __CYGWIN__
00092
00093 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_