File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858
5959# define JENKINS_LITTLE_ENDIAN
6060# define JENKINS_BYTE_ORDER 1234
61+ // From https://stackoverflow.com/questions/4239993/determining-endianness-at-compile-time/4240029
62+ #elif defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN || \
63+ defined (__BIG_ENDIAN__) || \
64+ defined(__ARMEB__) || \
65+ defined(__THUMBEB__) || \
66+ defined(__AARCH64EB__) || \
67+ defined(_MIBSEB) || defined(__MIBSEB) || defined(__MIBSEB__)
68+ # define JENKINS_BIG_ENDIAN
69+ # define JENKINS_BYTE_ORDER 4321
70+ #elif defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN || \
71+ defined (__LITTLE_ENDIAN__) || \
72+ defined(__ARMEL__) || \
73+ defined(__THUMBEL__) || \
74+ defined(__AARCH64EL__) || \
75+ defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
76+ # define JENKINS_LITTLE_ENDIAN
77+ # define JENKINS_BYTE_ORDER 1234
6178#else
6279# error The file cassandra-cpp-driver/src/jenkins_hash.hpp needs to be set up for your CPU type.
6380#endif
You can’t perform that action at this time.
0 commit comments