Fix: Build failure on riscv64 platform
Use `__LP64__` consistently for 64-bit platform detection and simplify the checks a bit. The amd64, aarch64 and powerpc64 checks are covered by `__LP64__`. Pull Request: https://projects.blender.org/blender/blender/pulls/143679
This commit is contained in:
committed by
Sergey Sharybin
parent
a2515f68b8
commit
501df52b53
2
extern/cuew/include/cuew.h
vendored
2
extern/cuew/include/cuew.h
vendored
@@ -127,7 +127,7 @@ typedef uint32_t cuuint32_t;
|
||||
typedef uint64_t cuuint64_t;
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined (__aarch64__) || defined(_M_ARM64) || defined(__ppc64__) || defined(__PPC64__)
|
||||
#if defined(__LP64__) || defined(AMD64) || defined(_M_AMD64) || defined(_M_ARM64)
|
||||
typedef unsigned long long CUdeviceptr;
|
||||
#else
|
||||
typedef unsigned int CUdeviceptr;
|
||||
|
||||
2
extern/hipew/include/hipew.h
vendored
2
extern/hipew/include/hipew.h
vendored
@@ -87,7 +87,7 @@ typedef uint32_t hipuint32_t;
|
||||
typedef uint64_t hipuint64_t;
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) || defined (__aarch64__) || defined(_M_ARM64) || defined(__ppc64__) || defined(__PPC64__) || defined(__LP64__)
|
||||
#if defined(__LP64__) || defined(AMD64) || defined(_M_AMD64) || defined(_M_ARM64)
|
||||
typedef unsigned long long hipDeviceptr_t;
|
||||
#else
|
||||
typedef unsigned int hipDeviceptr_t;
|
||||
|
||||
Reference in New Issue
Block a user