Loading...
Searching...
No Matches
7#ifndef PXR_BASE_ARCH_DEFINES_H
8#define PXR_BASE_ARCH_DEFINES_H
16#elif defined(__APPLE__)
17#include "TargetConditionals.h"
27#elif defined(_WIN32) || defined(_WIN64)
28#define ARCH_OS_WINDOWS
35#if defined(i386) || defined(__i386__) || defined(__x86_64__) || \
36 defined(_M_IX86) || defined(_M_X64)
38#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM)
46#if defined(__x86_64__) || defined(__aarch64__) || defined(_M_X64)
49#error "Unsupported architecture. x86_64 or ARM64 required."
57#define ARCH_COMPILER_CLANG
58#define ARCH_COMPILER_CLANG_MAJOR __clang_major__
59#define ARCH_COMPILER_CLANG_MINOR __clang_minor__
60#define ARCH_COMPILER_CLANG_PATCHLEVEL __clang_patchlevel__
61#elif defined(__GNUC__)
62#define ARCH_COMPILER_GCC
63#define ARCH_COMPILER_GCC_MAJOR __GNUC__
64#define ARCH_COMPILER_GCC_MINOR __GNUC_MINOR__
65#define ARCH_COMPILER_GCC_PATCHLEVEL __GNUC_PATCHLEVEL__
67#define ARCH_COMPILER_ICC
68#elif defined(_MSC_VER)
69#define ARCH_COMPILER_MSVC
70#define ARCH_COMPILER_MSVC_VERSION _MSC_VER
78#if defined(ARCH_OS_LINUX) && defined(ARCH_COMPILER_GCC)
79#define ARCH_HAS_GNU_STL_EXTENSIONS
84#if !(defined(ARCH_OS_DARWIN) && defined(ARCH_COMPILER_CLANG))
85#define ARCH_HAS_THREAD_LOCAL
89#if defined(ARCH_OS_LINUX)
90#define ARCH_HAS_MMAP_MAP_POPULATE
99#if defined(ARCH_COMPILER_MSVC)
100 #if !defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL
101 #define ARCH_PREPROCESSOR_MSVC_TRADITIONAL