Skip to content

Commit

Permalink
Merge pull request #235 from grooverdan/3.1-remove-words_big_endian
Browse files Browse the repository at this point in the history
MDEV-19511 Remove WORDS_BIGENDIAN - HAVE_BIGENDIAN replaced it
  • Loading branch information
9EOR9 committed Sep 21, 2023
2 parents d9626e3 + 07ae949 commit a6d8ef5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cmake/WindowsCache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ IF(MSVC_VERSION GREATER 1310)
SET(HAVE_VSNPRINTF 1 CACHE INTERNAL "")
ENDIF()
SET(HAVE_WEAK_SYMBOL CACHE INTERNAL "")
SET(HAVE_WORDS_BIGENDIAN TRUE CACHE INTERNAL "")
SET(WORDS_BIGENDIAN CACHE INTERNAL "")
SET(HAVE_BIGENDIAN CACHE INTERNAL "")
SET(HAVE__S_IFIFO 1 CACHE INTERNAL "")
SET(HAVE__S_IREAD 1 CACHE INTERNAL "")
SET(HAVE__finite 1 CACHE INTERNAL "")
Expand Down
4 changes: 2 additions & 2 deletions include/ma_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ do { doubleget_union _tmp; \

#define float8get(V,M) doubleget((V),(M))
#define float8store(V,M) doublestore((V),(M))
#endif /* WORDS_BIGENDIAN */
#endif /* HAVE_BIGENDIAN */

#endif /* __i386__ OR _WIN32 */

Expand Down Expand Up @@ -1031,7 +1031,7 @@ do { doubleget_union _tmp; \
#define longlongget(V,M) memcpy(&V, (M), sizeof(ulonglong))
#define longlongstore(T,V) memcpy((T), &V, sizeof(ulonglong))

#endif /* WORDS_BIGENDIAN */
#endif /* HAVE_BIGENDIAN */

#ifndef THREAD
#define thread_safe_increment(V,L) ((V)++)
Expand Down
2 changes: 1 addition & 1 deletion libmariadb/ma_dtoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ typedef uint64 ULLong;

typedef union { double d; ULong L[2]; } U;

#if defined(HAVE_BIGENDIAN) || defined(WORDS_BIGENDIAN) || \
#if defined(HAVE_BIGENDIAN) || \
(defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN))
#define word0(x) ((x)->L[0])
#define word1(x) ((x)->L[1])
Expand Down

0 comments on commit a6d8ef5

Please sign in to comment.