Loading...
Searching...
No Matches
Go to the documentation of this file.
8#ifndef PXR_ARCH_DEFINES_H
9#define PXR_ARCH_DEFINES_H
11#define PXR_VERSION 2408
19#elif defined(__APPLE__)
20#include "TargetConditionals.h"
30#elif defined(_WIN32) || defined(_WIN64)
31#define ARCH_OS_WINDOWS
38#if defined(i386) || defined(__i386__) || defined(__x86_64__) || \
39 defined(_M_IX86) || defined(_M_X64)
41#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM)
49#if defined(__x86_64__) || defined(__aarch64__) || defined(_M_X64)
52#error "Unsupported architecture. x86_64 or ARM64 required."
60#define ARCH_COMPILER_CLANG
61#define ARCH_COMPILER_CLANG_MAJOR __clang_major__
62#define ARCH_COMPILER_CLANG_MINOR __clang_minor__
63#define ARCH_COMPILER_CLANG_PATCHLEVEL __clang_patchlevel__
64#elif defined(__GNUC__)
65#define ARCH_COMPILER_GCC
66#define ARCH_COMPILER_GCC_MAJOR __GNUC__
67#define ARCH_COMPILER_GCC_MINOR __GNUC_MINOR__
68#define ARCH_COMPILER_GCC_PATCHLEVEL __GNUC_PATCHLEVEL__
70#define ARCH_COMPILER_ICC
71#elif defined(_MSC_VER)
72#define ARCH_COMPILER_MSVC
73#define ARCH_COMPILER_MSVC_VERSION _MSC_VER
81#if defined(ARCH_OS_LINUX) && defined(ARCH_COMPILER_GCC)
82#define ARCH_HAS_GNU_STL_EXTENSIONS
87#if !(defined(ARCH_OS_DARWIN) && defined(ARCH_COMPILER_CLANG))
88#define ARCH_HAS_THREAD_LOCAL
92#if defined(ARCH_OS_LINUX)
93#define ARCH_HAS_MMAP_MAP_POPULATE
102#if defined(ARCH_COMPILER_MSVC)
103 #if !defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL
104 #define ARCH_PREPROCESSOR_MSVC_TRADITIONAL