Commit 32cbda18 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix failing yassl tests on OSX

 WORDS_BIGENDIAN was wrongly defined to 1
parent 6e84defd
...@@ -428,7 +428,13 @@ ...@@ -428,7 +428,13 @@
#endif #endif
#define STRUCT_RLIMIT struct rlimit #define STRUCT_RLIMIT struct rlimit
#ifdef __APPLE__
#if __BIG_ENDIAN
#define WORDS_BIGENDIAN 1
#endif
#else
#cmakedefine WORDS_BIGENDIAN 1 #cmakedefine WORDS_BIGENDIAN 1
#endif
/* Define to `__inline__' or `__inline' if that's what the C compiler calls /* Define to `__inline__' or `__inline' if that's what the C compiler calls
it, or to nothing if 'inline' is not supported under any name. */ it, or to nothing if 'inline' is not supported under any name. */
......
...@@ -702,9 +702,9 @@ int main() { ...@@ -702,9 +702,9 @@ int main() {
# #
INCLUDE(TestBigEndian) INCLUDE(TestBigEndian)
IF(APPLE) IF(APPLE)
# Can'r run endian test on universal PPC/Intel binaries # Cannot run endian test on universal PPC/Intel binaries
# would return inconsistent result. # would return inconsistent result.
SET(WORDS_BIGENDIAN __BIG_ENDIAN CACHE INTERNAL "big endian test") # config.h.cmake includes a special #ifdef for Darwin
ELSE() ELSE()
TEST_BIG_ENDIAN(WORDS_BIGENDIAN) TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment