Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:43:43

0001 // Copyright 2015, Google Inc.
0002 // All rights reserved.
0003 //
0004 // Redistribution and use in source and binary forms, with or without
0005 // modification, are permitted provided that the following conditions are
0006 // met:
0007 //
0008 //     * Redistributions of source code must retain the above copyright
0009 // notice, this list of conditions and the following disclaimer.
0010 //     * Redistributions in binary form must reproduce the above
0011 // copyright notice, this list of conditions and the following disclaimer
0012 // in the documentation and/or other materials provided with the
0013 // distribution.
0014 //     * Neither the name of Google Inc. nor the names of its
0015 // contributors may be used to endorse or promote products derived from
0016 // this software without specific prior written permission.
0017 //
0018 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0019 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0020 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0021 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0022 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0023 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0024 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0025 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0026 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0027 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0028 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0029 
0030 // The Google C++ Testing and Mocking Framework (Google Test)
0031 //
0032 // This header file defines the GTEST_OS_* macro.
0033 // It is separate from gtest-port.h so that custom/gtest-port.h can include it.
0034 
0035 #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
0036 #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_
0037 
0038 // Determines the platform on which Google Test is compiled.
0039 #ifdef __CYGWIN__
0040 #define GTEST_OS_CYGWIN 1
0041 #elif defined(__MINGW__) || defined(__MINGW32__) || defined(__MINGW64__)
0042 #define GTEST_OS_WINDOWS_MINGW 1
0043 #define GTEST_OS_WINDOWS 1
0044 #elif defined _WIN32
0045 #define GTEST_OS_WINDOWS 1
0046 #ifdef _WIN32_WCE
0047 #define GTEST_OS_WINDOWS_MOBILE 1
0048 #elif defined(WINAPI_FAMILY)
0049 #include <winapifamily.h>
0050 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
0051 #define GTEST_OS_WINDOWS_DESKTOP 1
0052 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP)
0053 #define GTEST_OS_WINDOWS_PHONE 1
0054 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
0055 #define GTEST_OS_WINDOWS_RT 1
0056 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_TV_TITLE)
0057 #define GTEST_OS_WINDOWS_PHONE 1
0058 #define GTEST_OS_WINDOWS_TV_TITLE 1
0059 #else
0060 // WINAPI_FAMILY defined but no known partition matched.
0061 // Default to desktop.
0062 #define GTEST_OS_WINDOWS_DESKTOP 1
0063 #endif
0064 #else
0065 #define GTEST_OS_WINDOWS_DESKTOP 1
0066 #endif  // _WIN32_WCE
0067 #elif defined __OS2__
0068 #define GTEST_OS_OS2 1
0069 #elif defined __APPLE__
0070 #define GTEST_OS_MAC 1
0071 #include <TargetConditionals.h>
0072 #if TARGET_OS_IPHONE
0073 #define GTEST_OS_IOS 1
0074 #endif
0075 #elif defined __DragonFly__
0076 #define GTEST_OS_DRAGONFLY 1
0077 #elif defined __FreeBSD__
0078 #define GTEST_OS_FREEBSD 1
0079 #elif defined __Fuchsia__
0080 #define GTEST_OS_FUCHSIA 1
0081 #elif defined(__GNU__)
0082 #define GTEST_OS_GNU_HURD 1
0083 #elif defined(__GLIBC__) && defined(__FreeBSD_kernel__)
0084 #define GTEST_OS_GNU_KFREEBSD 1
0085 #elif defined __linux__
0086 #define GTEST_OS_LINUX 1
0087 #if defined __ANDROID__
0088 #define GTEST_OS_LINUX_ANDROID 1
0089 #endif
0090 #elif defined __MVS__
0091 #define GTEST_OS_ZOS 1
0092 #elif defined(__sun) && defined(__SVR4)
0093 #define GTEST_OS_SOLARIS 1
0094 #elif defined(_AIX)
0095 #define GTEST_OS_AIX 1
0096 #elif defined(__hpux)
0097 #define GTEST_OS_HPUX 1
0098 #elif defined __native_client__
0099 #define GTEST_OS_NACL 1
0100 #elif defined __NetBSD__
0101 #define GTEST_OS_NETBSD 1
0102 #elif defined __OpenBSD__
0103 #define GTEST_OS_OPENBSD 1
0104 #elif defined __QNX__
0105 #define GTEST_OS_QNX 1
0106 #elif defined(__HAIKU__)
0107 #define GTEST_OS_HAIKU 1
0108 #elif defined ESP8266
0109 #define GTEST_OS_ESP8266 1
0110 #elif defined ESP32
0111 #define GTEST_OS_ESP32 1
0112 #elif defined(__XTENSA__)
0113 #define GTEST_OS_XTENSA 1
0114 #endif  // __CYGWIN__
0115 
0116 #endif  // GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_ARCH_H_