File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,14 @@ static SECP256K1_INLINE void *manual_alloc(void** prealloc_ptr, size_t alloc_siz
186
186
#if defined(_MSC_VER ) && defined(_WIN32 ) && !defined(SECP256K1_LITTLE_ENDIAN )
187
187
# define SECP256K1_LITTLE_ENDIAN
188
188
#endif
189
+ #if !defined(SECP256K1_LITTLE_ENDIAN ) && !defined(SECP256K1_BIG_ENDIAN )
190
+ # if defined(__i386__ ) || defined(__i686__ ) || defined(__x86_64__ ) || defined(__amd64__ ) || defined(__ARMEL__ ) || defined(__AARCH64EL__ ) || defined(__MIPSEL__ )
191
+ # define SECP256K1_LITTLE_ENDIAN
192
+ # endif
193
+ # if defined(__MIPSEB__ ) || defined(__ARMEB__ ) || defined(__AARCH64EB__ )
194
+ # define SECP256K1_BIG_ENDIAN
195
+ # endif
196
+ #endif
189
197
#if defined(SECP256K1_LITTLE_ENDIAN ) == defined(SECP256K1_BIG_ENDIAN )
190
198
# error Please make sure that either SECP256K1_LITTLE_ENDIAN or SECP256K1_BIG_ENDIAN is set, see src/util.h.
191
199
#endif
You can’t perform that action at this time.
0 commit comments