Big Endian Support Removal.
This commit implements #125759. It removes: * Blender does not build on big endian systems anymore. * Support for opening blendfiles written from a big endian system is removed. It keeps: * Support to generate thumbnails from big endian blendfiles. * BE support in `extern` or `intern` libraries, including Cycles. * Support to open big endian versions of third party file formats: - PLY files. - Some image files (cineon, ...). Pull Request: https://projects.blender.org/blender/blender/pulls/140138
This commit is contained in:
committed by
Bastien Montagne
parent
05d0391ed6
commit
bc80ef136e
@@ -174,11 +174,8 @@ static const char *check_memlist(const MemHead *memh);
|
||||
/* locally used defines */
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
#ifdef __BIG_ENDIAN__
|
||||
# define MAKE_ID(a, b, c, d) (int(a) << 24 | int(b) << 16 | (c) << 8 | (d))
|
||||
#else
|
||||
# define MAKE_ID(a, b, c, d) (int(d) << 24 | int(c) << 16 | (b) << 8 | (a))
|
||||
#endif
|
||||
/* NOTE: this is endianness-sensitive. */
|
||||
#define MAKE_ID(a, b, c, d) (int(d) << 24 | int(c) << 16 | (b) << 8 | (a))
|
||||
|
||||
#define MEMTAG1 MAKE_ID('M', 'E', 'M', 'O')
|
||||
#define MEMTAG2 MAKE_ID('R', 'Y', 'B', 'L')
|
||||
|
||||
Reference in New Issue
Block a user